mirror of
https://github.com/scratchfoundation/eslint-config-scratch.git
synced 2025-07-17 17:55:15 -04:00
https://github.com/tc39/proposal-object-rest-spread has become a part of the ECMAScript standard as of version 2018 (also known as ECMAScript 9). experimentalObjectRestSpread will be removed in the future from eslint.
25 lines
664 B
JavaScript
25 lines
664 B
JavaScript
module.exports = {
|
|
rules: {
|
|
'arrow-body-style': [2, 'as-needed'],
|
|
'arrow-parens': [2, 'as-needed'],
|
|
'arrow-spacing': [2, {
|
|
before: true,
|
|
after: true
|
|
}],
|
|
'no-confusing-arrow': [2],
|
|
'no-useless-computed-key': [2],
|
|
'no-useless-constructor': [2],
|
|
'no-var': [2],
|
|
'prefer-arrow-callback': [2],
|
|
'prefer-const': [2, {destructuring: 'all'}],
|
|
'prefer-template': [2],
|
|
'rest-spread-spacing': [2, 'never'],
|
|
'template-curly-spacing': [2, 'never']
|
|
},
|
|
env: {
|
|
es6: true
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2018
|
|
}
|
|
};
|