create-js-app-scripts
Version:
Configuration and scripts for Create Js App.
37 lines (36 loc) • 748 B
JavaScript
module.exports = {
root: true,
parser: 'babel-eslint',
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
extends: [
require.resolve('eslint-config-airbnb')
],
parserOptions: {
ecmaVersion: 2016,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
generators: true,
experimentalObjectRestSpread: true,
},
},
plugins: ['flowtype'],
rules: {
'generator-star-spacing': 'off',
'import/*': 'off',
'react/require-extension': 'off',
'flowtype/define-flow-type': 'warn',
'flowtype/require-valid-file-annotation': 'warn',
'flowtype/use-flow-type': 'warn'
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
}
};