mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
30 lines
542 B
JavaScript
30 lines
542 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: [
|
|
'./node_modules/eslint-config-airbnb-base/rules/es6.js',
|
|
],
|
|
plugins: [
|
|
'prettier',
|
|
],
|
|
parser: 'babel-eslint',
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
},
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
},
|
|
rules: {
|
|
strict: 0,
|
|
'prettier/prettier': ['warn', {
|
|
printWidth: 100,
|
|
tabWidth: 2,
|
|
bracketSpacing: true,
|
|
trailingComma: 'es5',
|
|
singleQuote: true,
|
|
}],
|
|
quotes: ['warn', 'single'],
|
|
'arrow-parens': ['warn', 'as-needed'],
|
|
},
|
|
}
|