ESLint config added

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 8 years ago
parent 6a8bde1c1f
commit 4832f4bdee
  1. 24
      BuildServer/package.json

@ -28,5 +28,29 @@
"serve-static": "^1.11.1", "serve-static": "^1.11.1",
"uglify-js": "^2.7.5", "uglify-js": "^2.7.5",
"underscore": "^1.8.3" "underscore": "^1.8.3"
},
"eslintConfig": {
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 6
},
"extends": "eslint:all",
"rules": {
"quotes": ["warn", "double"],
"require-jsdoc": "off",
"func-names": ["warn", "never"],
"max-len": ["warn", { "code": 140 }],
"operator-linebreak": ["warn", "before"],
"padded-blocks": ["warn", "never"],
"dot-notation": ["warn", { "allowPattern": "^[a-z]+(_[a-z]+)+$" }],
"linebreak-style": ["warn", "windows"],
"no-console": "off",
"dot-location": ["warn", "property"],
"object-curly-spacing": ["warn", "always"],
"one-var": ["warn", { "initialized": "never" }],
"no-extra-parens": ["warn", "all", { "nestedBinaryExpressions": false }]
}
} }
} }

Loading…
Cancel
Save