27 lines
471 B
JavaScript
27 lines
471 B
JavaScript
module.exports = {
|
|
extends: ['eslint:recommended', 'prettier'],
|
|
parser: '@babel/eslint-parser',
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
ecmaVersion: 6,
|
|
},
|
|
env: {
|
|
es6: true,
|
|
jest: true,
|
|
node: true,
|
|
},
|
|
plugins: ['prettier', 'import'],
|
|
globals: {
|
|
testRule: true,
|
|
},
|
|
rules: {
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
printWidth: 100,
|
|
singleQuote: true,
|
|
trailingComma: 'es5',
|
|
},
|
|
],
|
|
},
|
|
};
|