-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from namics/develop
v4.1.0
- Loading branch information
Showing
350 changed files
with
6,247 additions
and
52 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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
npm-debug.log | ||
node_modules | ||
test | ||
processing | ||
bin | ||
documentation |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/* | ||
USAGE | ||
run `node processing/write-documentation.js` | ||
run `node bin/write-documentation.js` | ||
*/ | ||
|
||
|
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,7 @@ | ||
module.exports = { | ||
|
||
extends: [ | ||
'./es5-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,10 @@ | ||
module.exports = { | ||
|
||
extends: [ | ||
'../rules/best-practices-disable-styles.js', | ||
'../rules/errors-disable-styles.js', | ||
'../rules/style-disable-styles.js', | ||
'../rules/variables-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,8 @@ | ||
module.exports = { | ||
|
||
extends: [ | ||
'./es5-disable-styles.js', | ||
'../rules/node-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,7 @@ | ||
module.exports = { | ||
|
||
extends: [ | ||
'./es6-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,12 @@ | ||
module.exports = { | ||
|
||
extends: [ | ||
'../rules/best-practices-disable-styles.js', | ||
'../rules/errors-disable-styles.js', | ||
'../rules/style-disable-styles.js', | ||
'../rules/variables-disable-styles.js', | ||
'../rules/imports-disable-styles.js', | ||
'../rules/es6-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,8 @@ | ||
module.exports = { | ||
|
||
extends: [ | ||
'./es6-disable-styles.js', | ||
'../rules/node-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,8 @@ | ||
module.exports = { | ||
'extends': [ | ||
'./es6-disable-styles.js', | ||
'../rules/react-disable-styles.js', | ||
'../rules/react-a11y-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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,8 @@ | ||
|
||
module.exports = { | ||
|
||
'extends': [ | ||
'../rules/flow-disable-styles.js', | ||
].map(require.resolve), | ||
|
||
}; |
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
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,33 @@ | ||
## with prettier | ||
|
||
### ES6 + Prettier | ||
``` | ||
module.exports = { | ||
"extends": [ | ||
"@namics/eslint-config/configurations/es6-browser.js", | ||
"@namics/eslint-config/configurations/es6-browser-disable-styles.js" | ||
] | ||
}; | ||
``` | ||
|
||
### ES6 + React + Prettier | ||
``` | ||
module.exports = { | ||
"extends": [ | ||
"@namics/eslint-config/configurations/es6-react.js", | ||
"@namics/eslint-config/configurations/es6-react-disable-styles.js" | ||
] | ||
}; | ||
``` | ||
|
||
### ES6 + React + Flow + Prettier | ||
``` | ||
module.exports = { | ||
"extends": [ | ||
"@namics/eslint-config/configurations/es6-react.js", | ||
"@namics/eslint-config/configurations/es6-react-disable-styles.js", | ||
"@namics/eslint-config/configurations/flow.js", | ||
"@namics/eslint-config/configurations/flow-disable-styles.js" | ||
] | ||
}; | ||
``` |
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,48 +1,57 @@ | ||
{ | ||
"name": "@namics/eslint-config", | ||
"version": "4.0.0", | ||
"description": "Default configurations for eslint", | ||
"author": "Simon Mollweide <simon.mollweide@namics.com>", | ||
"license": "MIT", | ||
"private": false, | ||
"engines": { | ||
"node": ">=4 <9", | ||
"npm": ">=3 <6" | ||
"name": "@namics/eslint-config", | ||
"version": "4.1.0", | ||
"description": "Default configurations for eslint", | ||
"author": "Simon Mollweide <simon.mollweide@namics.com>", | ||
"license": "MIT", | ||
"private": false, | ||
"engines": { | ||
"node": ">=4 <9", | ||
"npm": ">=3 <6" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/namics/eslint-config-namics.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/namics/eslint-config-namics/issues" | ||
}, | ||
"main": "configurations/es6-browser.js", | ||
"scripts": { | ||
"lint": "npm run lint:js", | ||
"lint:js": "node_modules/.bin/eslint .", | ||
"test": "npm run lint", | ||
"prettier": "npm run prettier:es5 && npm run prettier:es5node && npm run prettier:es6 && npm run prettier:es6react && npm run prettier:flow", | ||
"prettier:es5": "node_modules/.bin/prettier --write \"test/es5-disable-styles/**/*.js\"", | ||
"prettier:es5node": "node_modules/.bin/prettier --write \"test/es5-node-disable-styles/**/*.js\"", | ||
"prettier:es6": "node_modules/.bin/prettier --write \"test/es6-disable-styles/**/*.js\"", | ||
"prettier:es6react": "node_modules/.bin/prettier --write \"test/es6-react-disable-styles/**/*.js\"", | ||
"prettier:flow": "node_modules/.bin/prettier --write \"test/flow-disable-styles/**/*.js\"" | ||
}, | ||
"keywords": [ | ||
"code checker", | ||
"code linter", | ||
"code standards", | ||
"code style", | ||
"eslint-config", | ||
"eslint", | ||
"eslintconfig", | ||
"lint", | ||
"es2015", | ||
"react", | ||
"jsx" | ||
], | ||
"devDependencies": { | ||
"prettier": "^1.5.3" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/namics/eslint-config-namics.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/namics/eslint-config-namics/issues" | ||
}, | ||
"main": "configurations/es6-browser.js", | ||
"scripts": { | ||
"lint": "npm run lint:js", | ||
"lint:js": "node_modules/.bin/eslint .", | ||
"test": "npm run lint" | ||
}, | ||
"keywords": [ | ||
"code checker", | ||
"code linter", | ||
"code standards", | ||
"code style", | ||
"eslint-config", | ||
"eslint", | ||
"eslintconfig", | ||
"lint", | ||
"es2015", | ||
"react", | ||
"jsx" | ||
], | ||
"dependencies": { | ||
"babel-eslint": "7.2.3", | ||
"eslint": "4.2.0", | ||
"eslint-find-rules": "3.1.1", | ||
"eslint-plugin-flowtype": "2.35.0", | ||
"eslint-plugin-import": "2.7.0", | ||
"eslint-plugin-jsx-a11y": "6.0.2", | ||
"eslint-plugin-react": "7.1.0", | ||
"flow-bin": "0.50.0" | ||
} | ||
"dependencies": { | ||
"babel-eslint": "7.2.3", | ||
"eslint": "4.2.0", | ||
"eslint-find-rules": "3.1.1", | ||
"eslint-plugin-flowtype": "2.35.0", | ||
"eslint-plugin-import": "2.7.0", | ||
"eslint-plugin-jsx-a11y": "6.0.2", | ||
"eslint-plugin-react": "7.1.0", | ||
"flow-bin": "0.50.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,24 @@ | ||
/* global module */ | ||
/* not yet approved by skill group core team */ | ||
module.exports = { | ||
rules: { | ||
// specify curly brace conventions for all control statements | ||
'curly': 0, | ||
|
||
// enforces consistent newlines before or after dots | ||
'dot-location': 0, | ||
|
||
// disallow lexical declarations in case/default clauses | ||
// http://eslint.org/docs/rules/no-case-declarations.html | ||
'no-case-declarations': 0, | ||
|
||
// disallow the use of leading or trailing decimal points in numeric literals | ||
'no-floating-decimal': 0, | ||
|
||
// disallow use of multiple spaces | ||
'no-multi-spaces': 0, | ||
|
||
// disallow use of multiline strings | ||
'no-multi-str': 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,17 @@ | ||
/* global module */ | ||
/* not yet approved by skill group core team */ | ||
module.exports = { | ||
rules: { | ||
// require trailing commas in multiline object literals | ||
'comma-dangle': 0, | ||
|
||
// disallow unnecessary semicolons | ||
'no-extra-semi': 0, | ||
|
||
// disallow irregular whitespace outside of strings and comments | ||
'no-irregular-whitespace': 0, | ||
|
||
// Avoid code that looks like two expressions but is actually one | ||
'no-unexpected-multiline': 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,32 @@ | ||
/* global module */ | ||
/* not yet approved by skill group core team */ | ||
module.exports = { | ||
rules: { | ||
// enforces no braces where they can be omitted | ||
// http://eslint.org/docs/rules/arrow-body-style | ||
'arrow-body-style': 0, | ||
|
||
// require parens in arrow function arguments | ||
'arrow-parens': 0, | ||
|
||
// require space before/after arrow function's arrow | ||
// http://eslint.org/docs/rules/arrow-spacing | ||
'arrow-spacing': 0, | ||
|
||
// enforce the spacing around the * in generator functions | ||
// http://eslint.org/docs/rules/generator-star-spacing | ||
'generator-star-spacing': 0, | ||
|
||
// disallow arrow functions where they could be confused with comparisons | ||
// http://eslint.org/docs/rules/no-confusing-arrow | ||
'no-confusing-arrow': 0, | ||
|
||
// enforce usage of spacing in template strings | ||
// http://eslint.org/docs/rules/template-curly-spacing | ||
'template-curly-spacing': 0, | ||
|
||
// enforce spacing around the * in yield* expressions | ||
// http://eslint.org/docs/rules/yield-star-spacing | ||
'yield-star-spacing': 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,36 @@ | ||
/* eslint-disable */ | ||
/* global module */ | ||
/* not yet approved by skill group core team */ | ||
module.exports = { | ||
rules: { | ||
|
||
|
||
// enforces consistent use of trailing commas in Object and Tuple annotations. | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-delimiter-dangle | ||
'flowtype/delimiter-dangle': 0, | ||
|
||
// enforces consistent separators between properties in Flow object types. | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-object-type-delimiter | ||
'flowtype/object-type-delimiter': 0, | ||
|
||
// enforces consistent use of semicolons after type aliases. | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-semi | ||
'flowtype/semi': 0, | ||
|
||
// enforces consistent spacing after the type annotation colon. | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-after-type-colon | ||
'flowtype/space-after-type-colon': 0, | ||
|
||
// Enforces consistent spacing before the opening < of generic type annotation parameters. | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-before-generic-bracket | ||
'flowtype/space-before-generic-bracket': 0, | ||
|
||
// Enforces consistent spacing before the type annotation colon. | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-space-before-type-colon | ||
'flowtype/space-before-type-colon': 0, | ||
|
||
// Enforces consistent spacing around union and intersection type separators (| and &). | ||
// https://github.com/gajus/eslint-plugin-flowtype#eslint-plugin-flowtype-rules-union-intersection-spacing | ||
'flowtype/union-intersection-spacing': 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
Oops, something went wrong.