chore: dev env
This commit is contained in:
parent
c573b9b989
commit
d7b73f95d2
3 changed files with 40 additions and 0 deletions
17
.eslintrc.yaml
Normal file
17
.eslintrc.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
extends:
|
||||
- airbnb
|
||||
- prettier
|
||||
- plugin:node/recommended
|
||||
|
||||
plugins:
|
||||
- prettier
|
||||
|
||||
rules:
|
||||
prettier/prettier: error
|
||||
no-unused-vars: warn
|
||||
no-console: off
|
||||
func-names: off
|
||||
no-process-exit: off
|
||||
object-shorthand: off
|
||||
class-methods-use-this: off
|
||||
semi: [2, never]
|
5
.prettierrc
Normal file
5
.prettierrc
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"semi": false,
|
||||
"singleQuote": false,
|
||||
"trailingComma": "none"
|
||||
}
|
18
eslint.config.js
Normal file
18
eslint.config.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const a11yOff = Object.keys(require('eslint-plugin-jsx-a11y').rules)
|
||||
.reduce((acc, rule) => { acc[`jsx-a11y/${rule}`] = 'off'; return acc }, {})
|
||||
|
||||
module.exports = {
|
||||
extends: ['airbnb', 'prettier', 'plugin:node/recommended'],
|
||||
plugins: ['pretftier'],
|
||||
rules: {
|
||||
...a11yOff,
|
||||
'prettier/prettier': 'error',
|
||||
'no-unused-vars': 'warn',
|
||||
'no-console': 'off',
|
||||
'func-names': 'off',
|
||||
'no-process-exit': 'off',
|
||||
'object-shorthand': 'off',
|
||||
'class-methods-use-this': 'off',
|
||||
"semi": [2, "never"]
|
||||
},
|
||||
};
|
Loading…
Reference in a new issue