lint .eslintrc.js
This commit is contained in:
parent
93f24f7e6d
commit
965c6dc23a
2 changed files with 20 additions and 21 deletions
|
@ -332,7 +332,6 @@ config/webpack/test.js
|
|||
lib/templates/rails/assets/javascript.js
|
||||
postcss.config.js
|
||||
setupTests.js
|
||||
.eslintrc.js
|
||||
|
||||
# old es files
|
||||
app/javascript/legacy/bank_accounts/confirm/index.es6
|
||||
|
|
40
.eslintrc.js
40
.eslintrc.js
|
@ -16,23 +16,23 @@ module.exports = {
|
|||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
]
|
||||
},
|
||||
{
|
||||
"files": ['**/*.spec.ts'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
'jest'
|
||||
],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:jest/all'
|
||||
],
|
||||
rules:{
|
||||
"jest/lowercase-name": ["error", { "ignore": ["describe"]}]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ['**/*.spec.ts'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: [
|
||||
'@typescript-eslint',
|
||||
'jest'
|
||||
],
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:jest/all'
|
||||
],
|
||||
rules:{
|
||||
"jest/lowercase-name": ["error", { "ignore": ["describe"]}]
|
||||
}
|
||||
}
|
||||
],
|
||||
"rules": {
|
||||
"linebreak-style": [
|
||||
|
@ -42,8 +42,8 @@ module.exports = {
|
|||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"no-trailing-spaces": ["error"],
|
||||
"indent": ["error", "tab"], // we use tabs for accessibility
|
||||
],
|
||||
"no-trailing-spaces": ["error"],
|
||||
"indent": ["error", "tab"], // we use tabs for accessibility
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue