-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds style and script linter packages (#344)
- Loading branch information
1 parent
6644ca4
commit aab1e7d
Showing
9 changed files
with
102 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"extends": [ | ||
"airbnb" | ||
], | ||
|
||
"env": { | ||
"jest": true, | ||
"browser": true | ||
}, | ||
|
||
"plugins": [ | ||
"json" | ||
], | ||
|
||
"globals": { | ||
"KYT": true | ||
}, | ||
|
||
"rules": { | ||
"no-lonely-if": 2, | ||
"no-nested-ternary": 2, | ||
"max-nested-callbacks": [2, { "max": 5 }], | ||
"constructor-super": 2, | ||
"no-this-before-super": 2, | ||
"prefer-spread": 2, | ||
"no-warning-comments": [1, { "terms": ["todo", "fixme"], "location": "start" }], | ||
"react/sort-comp": 0, | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], | ||
"import/extensions": [1, { "js": "never" }], | ||
"react/require-extension": "off", | ||
"import/no-extraneous-dependencies": [0], | ||
"no-param-reassign": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "eslint-config-kyt", | ||
"version": "0.0.1", | ||
"description": "ESLint configuration for kyt projects.", | ||
"main": "eslintrc.json", | ||
"author": "NYTimes", | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=6.1.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nytimes/kyt.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/nytimes/kyt/issues" | ||
}, | ||
"dependencies": { | ||
"eslint": "3.8.1", | ||
"eslint-config-airbnb": "12.0.0", | ||
"eslint-plugin-import": "1.16.0", | ||
"eslint-plugin-json": "1.2.0", | ||
"eslint-plugin-jsx-a11y": "2.2.3", | ||
"eslint-plugin-react": "6.4.1" | ||
}, | ||
"keywords": ["kyt", "eslint", "config", "eslint-config"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"extends": [ | ||
"./node_modules/kyt/config/.eslintrc.base.json" | ||
"eslint-config-kyt" | ||
], | ||
|
||
"env": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"extends": "./node_modules/kyt/config/.stylelintrc.base.json", | ||
"extends": "stylelint-config-kyt", | ||
|
||
"rules": { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,5 @@ | ||
{ | ||
"extends": [ | ||
"airbnb" | ||
], | ||
|
||
"env": { | ||
"jest": true, | ||
"browser": true | ||
}, | ||
|
||
"plugins": [ | ||
"json" | ||
], | ||
|
||
"globals": { | ||
"KYT": true | ||
}, | ||
|
||
"rules": { | ||
"no-lonely-if": 2, | ||
"no-nested-ternary": 2, | ||
"max-nested-callbacks": [2, { "max": 5 }], | ||
"constructor-super": 2, | ||
"no-this-before-super": 2, | ||
"prefer-spread": 2, | ||
"prefer-reflect": 2, | ||
"no-warning-comments": [1, { "terms": ["todo", "fixme"], "location": "start" }], | ||
"react/sort-comp": 0, | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], | ||
"import/extensions": [1, { "js": "never" }], | ||
"react/require-extension": "off", | ||
"import/no-extraneous-dependencies": [0], | ||
"no-param-reassign": 0 | ||
} | ||
"eslint-config-kyt" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"extends": "stylelint-config-kyt", | ||
|
||
"rules": { | ||
"string-quotes": "single", | ||
"selector-no-id": true, | ||
"property-no-unknown": [true, {ignoreProperties: ["composes"]}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "stylelint-config-kyt", | ||
"version": "0.0.1", | ||
"description": "StyleLint configuration for kyt projects.", | ||
"main": "stylelintrc.json", | ||
"author": "NYTimes", | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=6.1.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nytimes/kyt.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/nytimes/kyt/issues" | ||
}, | ||
"dependencies": { | ||
"stylelint": "7.5.0", | ||
"stylelint-config-standard": "14.0.0" | ||
}, | ||
"keywords": ["kyt", "stylelint", "config", "stylelint-config"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
|
||
"rules": { | ||
"string-quotes": "single", | ||
"selector-no-id": true, | ||
"property-no-unknown": [true, {ignoreProperties: ["composes"]}] | ||
} | ||
} |