Update config to be more readable
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2e6b756b1b
commit
9173dbc4c7
1 changed files with 7 additions and 5 deletions
12
.eslintrc.js
12
.eslintrc.js
|
@ -21,7 +21,11 @@ Module._findPath = (request, paths, isMain) => {
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://eslint.org/docs/user-guide/configuring
|
/*
|
||||||
|
* ESLint configuration derived as differences from eslint:recommended
|
||||||
|
* with changes I found useful to ensure code quality and equal formatting
|
||||||
|
* https://eslint.org/docs/user-guide/configuring
|
||||||
|
*/
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
env: {
|
env: {
|
||||||
|
@ -31,8 +35,7 @@ module.exports = {
|
||||||
|
|
||||||
extends: [
|
extends: [
|
||||||
'plugin:vue/strongly-recommended',
|
'plugin:vue/strongly-recommended',
|
||||||
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
'eslint:recommended', // https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
||||||
'eslint:recommended',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
globals: {
|
globals: {
|
||||||
|
@ -51,7 +54,6 @@ module.exports = {
|
||||||
|
|
||||||
root: true,
|
root: true,
|
||||||
|
|
||||||
// add your custom rules here
|
|
||||||
rules: {
|
rules: {
|
||||||
'array-bracket-newline': ['error', { multiline: true }],
|
'array-bracket-newline': ['error', { multiline: true }],
|
||||||
'array-bracket-spacing': ['error'],
|
'array-bracket-spacing': ['error'],
|
||||||
|
@ -60,7 +62,7 @@ module.exports = {
|
||||||
'arrow-spacing': ['error', { after: true, before: true }],
|
'arrow-spacing': ['error', { after: true, before: true }],
|
||||||
'block-spacing': ['error'],
|
'block-spacing': ['error'],
|
||||||
'brace-style': ['error', '1tbs'],
|
'brace-style': ['error', '1tbs'],
|
||||||
'comma-dangle': ['error', 'always-multiline'], // Apply Contentflow rules
|
'comma-dangle': ['error', 'always-multiline'],
|
||||||
'comma-spacing': ['error'],
|
'comma-spacing': ['error'],
|
||||||
'comma-style': ['error', 'last'],
|
'comma-style': ['error', 'last'],
|
||||||
'curly': ['error'],
|
'curly': ['error'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue