2020-04-11 22:26:19 +08:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
commonjs: true,
|
|
|
|
es6: true,
|
|
|
|
node: true
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'airbnb-base'
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
Atomics: 'readonly',
|
|
|
|
SharedArrayBuffer: 'readonly'
|
|
|
|
},
|
|
|
|
parserOptions: {
|
2023-01-03 04:06:33 +08:00
|
|
|
ecmaVersion: 2018
|
2020-04-11 22:26:19 +08:00
|
|
|
},
|
|
|
|
rules: {
|
2023-01-03 04:06:33 +08:00
|
|
|
'comma-dangle': [
|
|
|
|
'error',
|
|
|
|
'never'
|
2020-04-11 22:26:19 +08:00
|
|
|
],
|
2023-01-03 04:06:33 +08:00
|
|
|
'no-console': 'off',
|
|
|
|
'object-curly-newline': 'off'
|
2020-04-11 22:26:19 +08:00
|
|
|
}
|
|
|
|
};
|