0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00
verdaccio/.eslintrc
Juan Picado @jotadeveloper 4c88d2371c
chore: add new style rules
2018-12-03 07:18:45 +01:00

64 lines
1.4 KiB
Text

{
"plugins": [
"react",
"babel",
"flowtype",
"jest",
"verdaccio"
],
"extends": [
"eslint:recommended",
"google",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:verdaccio/recommended"
],
"settings": {
"react": {
"pragma": "React", // Pragma to use
"version": "16.4.2", // React version
"flowVersion": "0.81.0" // Flow version
}
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 7,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"globals": {
"__APP_VERSION__": true
},
"rules": {
"babel/no-invalid-this": 1,
"prettier/prettier": ["error", null, "@prettier"],
"verdaccio/jsx-spread": 2,
"verdaccio/no-style": 2,
"no-useless-escape": 2,
"no-invalid-this": 0,
"react/no-deprecated": 1,
"react/jsx-no-target-blank": 1,
"handle-callback-err": 2,
"no-fallthrough": 2,
"no-new-require": 2,
"max-len": [2, 160],
"camelcase": 0,
"require-jsdoc": 0,
"valid-jsdoc": 0,
"prefer-spread": 1,
"prefer-rest-params": 1,
"linebreak-style": 0,
"quote-props":["error", "as-needed"]
}
}