mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
30 lines
630 B
JavaScript
30 lines
630 B
JavaScript
module.exports = {
|
|
'env': {
|
|
'browser': true,
|
|
'es6': true,
|
|
'node': true,
|
|
},
|
|
'extends': ['eslint:recommended', 'prettier'],
|
|
'globals': {
|
|
'Atomics': 'readonly',
|
|
'SharedArrayBuffer': 'readonly'
|
|
},
|
|
'parserOptions': {
|
|
'ecmaVersion': 2018,
|
|
"ecmaFeatures": {
|
|
"jsx": true,
|
|
},
|
|
},
|
|
'rules': {
|
|
"react/jsx-uses-react": "error",
|
|
"react/jsx-uses-vars": "error",
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "event|reject|resolve|prevState|snapshot|prevProps" }],
|
|
"no-constant-condition": 0,
|
|
"no-prototype-builtins": 0,
|
|
"prettier/prettier": "error",
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"prettier",
|
|
],
|
|
}; |