1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

eslint config

This commit is contained in:
sveisvei 2016-06-18 21:13:57 +02:00 committed by Ivar Conradi Østhus
parent e5c42f2db6
commit 08dfac8b53
11 changed files with 58 additions and 57 deletions

View File

@ -6,11 +6,11 @@ charset = utf-8
end_of_line = lf end_of_line = lf
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
insert_final_newline = false insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true
[*.md] [*.md]
trim_trailing_whitespace = false trim_trailing_whitespace = false
[*.json] [*.json]
indent_size = 2 indent_size = 2

View File

@ -1,24 +1,5 @@
{ {
"extends": [ "extends": [
"spt", "finn"
"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
}
} }

View File

@ -21,7 +21,7 @@
"scripts": { "scripts": {
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"prepublish": "npm run 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;", "pre-commit": "echo 'no lint check' && exit 0;",
"test": "lerna --concurrency=1 exec npm run test", "test": "lerna --concurrency=1 exec npm run test",
"test:ci": "lerna --concurrency=1 exec npm run test:ci", "test:ci": "lerna --concurrency=1 exec npm run test:ci",
@ -33,8 +33,8 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"eslint": "^2.0.0", "eslint": "^2.12.0",
"eslint-config-finn": "^1.0.0-alpha.3", "eslint-config-finn": "finn-no/eslint-config-finn#master",
"eslint-plugin-react": "^4.3.0", "eslint-plugin-react": "^4.3.0",
"lerna": "2.0.0-beta.20", "lerna": "2.0.0-beta.20",
"nsp": "^2.3.2", "nsp": "^2.3.2",

View File

@ -0,0 +1,10 @@
{
"extends": [
"finn",
"finn/es6",
"finn/node"
],
"rules": {
"max-nested-callbacks": [0]
}
}

View File

@ -1,20 +1,6 @@
{ {
"extends": [
"spt",
"spt/env-node",
"spt/env-es6-false"
],
"env": { "env": {
"browser": true "browser": true,
}, "mocha": true
"globals": {
"it": false,
"beforeEach": false,
"describe": false
},
"rules": {
"quotes": 0,
"vars-on-top": 0,
"max-nested-callbacks": 0
} }
} }

View File

@ -0,0 +1,6 @@
{
"extends": [
"finn",
"finn/node"
]
}

View File

@ -9,6 +9,9 @@
"db-migrate": "db-migrate up", "db-migrate": "db-migrate up",
"test:ci": "echo 'no tests for unleash-docker';" "test:ci": "echo 'no tests for unleash-docker';"
}, },
"engines": {
"node": "6"
},
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {

View File

@ -0,0 +1,7 @@
{
"extends": [
"finn",
"finn/es6",
"finn/node"
]
}

View File

@ -1,6 +1,14 @@
{ {
"extends": [ "extends": [
"finn", "finn",
"finn/es6",
"finn/react" "finn/react"
] ],
} "env": {
"browser": true,
"commonjs": true
},
"rules": {
"react/sort-comp": [0]
}
}

View File

@ -1,11 +1,12 @@
{ {
"extends": [ "extends": [
"spt", "finn",
"spt/env-node", "finn/node",
"spt/env-es6-false" "finn/es6"
], ],
"env": { "env": {
"browser": true "browser": true,
"mocha": true
}, },
"globals": { "globals": {
"it": false, "it": false,
@ -14,12 +15,5 @@
"expect": false, "expect": false,
"describe": false, "describe": false,
"afterEach": false "afterEach": false
},
"rules": {
"quotes": 0,
"strict": 0,
"vars-on-top": 0,
"no-undefined": 0,
"no-shadow": 0
} }
} }

View File

@ -0,0 +1,6 @@
{
"extends": [
"finn",
"finn/node"
]
}