mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
eslint config
This commit is contained in:
parent
e5c42f2db6
commit
08dfac8b53
@ -6,11 +6,11 @@ charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
insert_final_newline = false
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
indent_size = 2
|
||||
|
23
.eslintrc
23
.eslintrc
@ -1,24 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"spt",
|
||||
"spt/env-node",
|
||||
"spt/env-es6-false",
|
||||
"spt/env-react"
|
||||
],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"rules": {
|
||||
"quotes": 0,
|
||||
"strict": 0,
|
||||
"vars-on-top": 0,
|
||||
"no-use-before-define": 0,
|
||||
"dot-notation": 0,
|
||||
"eqeqeq": 0,
|
||||
"no-eq-null": 0,
|
||||
"no-undefined": 0,
|
||||
"no-else-return": 0,
|
||||
"no-shadow": 0,
|
||||
"consistent-this": 0
|
||||
}
|
||||
"finn"
|
||||
]
|
||||
}
|
@ -21,7 +21,7 @@
|
||||
"scripts": {
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"prepublish": "npm run bootstrap",
|
||||
"lint": "lerna exec eslint .",
|
||||
"lint": "node node_modules/eslint/bin/eslint.js packages --fix --ignore-pattern=node_modules --ext=js,jsx",
|
||||
"pre-commit": "echo 'no lint check' && exit 0;",
|
||||
"test": "lerna --concurrency=1 exec npm run test",
|
||||
"test:ci": "lerna --concurrency=1 exec npm run test:ci",
|
||||
@ -33,8 +33,8 @@
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"eslint": "^2.0.0",
|
||||
"eslint-config-finn": "^1.0.0-alpha.3",
|
||||
"eslint": "^2.12.0",
|
||||
"eslint-config-finn": "finn-no/eslint-config-finn#master",
|
||||
"eslint-plugin-react": "^4.3.0",
|
||||
"lerna": "2.0.0-beta.20",
|
||||
"nsp": "^2.3.2",
|
||||
|
10
packages/unleash-api/.eslintrc
Normal file
10
packages/unleash-api/.eslintrc
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": [
|
||||
"finn",
|
||||
"finn/es6",
|
||||
"finn/node"
|
||||
],
|
||||
"rules": {
|
||||
"max-nested-callbacks": [0]
|
||||
}
|
||||
}
|
@ -1,20 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"spt",
|
||||
"spt/env-node",
|
||||
"spt/env-es6-false"
|
||||
],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
"it": false,
|
||||
"beforeEach": false,
|
||||
"describe": false
|
||||
},
|
||||
"rules": {
|
||||
"quotes": 0,
|
||||
"vars-on-top": 0,
|
||||
"max-nested-callbacks": 0
|
||||
"browser": true,
|
||||
"mocha": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
6
packages/unleash-docker/.eslintrc
Normal file
6
packages/unleash-docker/.eslintrc
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"finn",
|
||||
"finn/node"
|
||||
]
|
||||
}
|
@ -9,6 +9,9 @@
|
||||
"db-migrate": "db-migrate up",
|
||||
"test:ci": "echo 'no tests for unleash-docker';"
|
||||
},
|
||||
"engines": {
|
||||
"node": "6"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
7
packages/unleash-frontend/.eslintrc
Normal file
7
packages/unleash-frontend/.eslintrc
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": [
|
||||
"finn",
|
||||
"finn/es6",
|
||||
"finn/node"
|
||||
]
|
||||
}
|
@ -1,6 +1,14 @@
|
||||
{
|
||||
"extends": [
|
||||
"finn",
|
||||
"finn/es6",
|
||||
"finn/react"
|
||||
]
|
||||
}
|
||||
],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true
|
||||
},
|
||||
"rules": {
|
||||
"react/sort-comp": [0]
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,12 @@
|
||||
{
|
||||
"extends": [
|
||||
"spt",
|
||||
"spt/env-node",
|
||||
"spt/env-es6-false"
|
||||
"finn",
|
||||
"finn/node",
|
||||
"finn/es6"
|
||||
],
|
||||
"env": {
|
||||
"browser": true
|
||||
"browser": true,
|
||||
"mocha": true
|
||||
},
|
||||
"globals": {
|
||||
"it": false,
|
||||
@ -14,12 +15,5 @@
|
||||
"expect": false,
|
||||
"describe": false,
|
||||
"afterEach": false
|
||||
},
|
||||
"rules": {
|
||||
"quotes": 0,
|
||||
"strict": 0,
|
||||
"vars-on-top": 0,
|
||||
"no-undefined": 0,
|
||||
"no-shadow": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
6
packages/unleash-server/.eslintrc
Normal file
6
packages/unleash-server/.eslintrc
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"finn",
|
||||
"finn/node"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user