mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
Add baseline .eslint files
This commit is contained in:
parent
94a7cf0858
commit
f5eabe6b16
13
awx/ui/.eslintignore
Normal file
13
awx/ui/.eslintignore
Normal 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
22
awx/ui/.eslintrc.js
Normal 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']
|
||||
}
|
||||
};
|
||||
1240
awx/ui/npm-shrinkwrap.json
generated
1240
awx/ui/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user