Add baseline .eslint files

This commit is contained in:
Greg Considine 2017-03-28 10:04:44 -04:00
parent 94a7cf0858
commit f5eabe6b16
4 changed files with 570 additions and 711 deletions

13
awx/ui/.eslintignore Normal file
View File

@ -0,0 +1,13 @@
webpack.*.js
Gruntfile.js
karma.*.js
etc
grunt-tasks
node_modules
po
static
templates
tests
client/**/*.js

22
awx/ui/.eslintrc.js Normal file
View File

@ -0,0 +1,22 @@
module.exports = {
extends: 'airbnb-base',
plugins: [
'import'
],
env: {
browser: true,
node: true
},
globals: {
angular: true,
d3: true,
$: true,
codemirror: true,
jsyaml: true
},
rules: {
indent: ['error', 4],
'comma-dangle': 'off',
'prefer-const': ['off']
}
};

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,8 @@
"pretest": "grunt clean:coverage",
"test": "karma start karma.conf.js",
"jshint": "grunt clean:jshint jshint:source --no-color",
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=PhantomJS"
"test:ci": "npm run test -- --single-run --reporter junit,dots --browsers=PhantomJS",
"lint": "./node_modules/.bin/eslint -c .eslintrc.js ."
},
"optionalDependencies": {
"browser-sync": "^2.14.0",
@ -38,6 +39,9 @@
"babel-loader": "^6.2.4",
"babel-plugin-istanbul": "^2.0.0",
"babel-preset-es2015": "^6.9.0",
"eslint": "^3.18.0",
"eslint-config-airbnb-base": "^11.1.1",
"eslint-plugin-import": "^2.2.0",
"expose-loader": "^0.7.1",
"grunt": "^1.0.1",
"grunt-angular-gettext": "^2.2.3",