mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-11-21 17:26:56 +01:00
fix: lint config
Signed-off-by: getlarge <ed@getlarge.eu>
This commit is contained in:
parent
3d49a6755e
commit
611624fd7a
@ -1,3 +1,6 @@
|
|||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
coverage
|
coverage
|
||||||
|
media
|
||||||
|
docs
|
||||||
|
compose
|
15
.eslintrc.js
15
.eslintrc.js
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
extends: 'airbnb-base',
|
extends: ['eslint:recommended', 'airbnb-base', 'plugin:import/recommended'],
|
||||||
parser: '@babel/eslint-parser',
|
parser: '@babel/eslint-parser',
|
||||||
parserOptions: { requireConfigFile: false },
|
parserOptions: { requireConfigFile: false },
|
||||||
env: {
|
env: {
|
||||||
@ -68,7 +68,7 @@ module.exports = {
|
|||||||
|
|
||||||
// Enforce 4-space indents, except for switch cases
|
// Enforce 4-space indents, except for switch cases
|
||||||
// http://eslint.org/docs/rules/indent
|
// http://eslint.org/docs/rules/indent
|
||||||
indent: [2, 4, { SwitchCase: 1, VariableDeclarator: 1 }],
|
'indent': [2, 4, { SwitchCase: 1, VariableDeclarator: 1 }],
|
||||||
|
|
||||||
// Specify the maximum length of a code line to be 100
|
// Specify the maximum length of a code line to be 100
|
||||||
// http://eslint.org/docs/rules/max-len
|
// http://eslint.org/docs/rules/max-len
|
||||||
@ -158,7 +158,7 @@ module.exports = {
|
|||||||
|
|
||||||
// We don't like semicolons so kill them
|
// We don't like semicolons so kill them
|
||||||
// http://eslint.org/docs/rules/semi
|
// http://eslint.org/docs/rules/semi
|
||||||
semi: [2, 'never'],
|
'semi': [2, 'never'],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Import rules
|
* Import rules
|
||||||
@ -198,13 +198,6 @@ module.exports = {
|
|||||||
* ES6-specific Issues
|
* ES6-specific Issues
|
||||||
* (http://eslint.org/docs/rules/#ecmascript-6)
|
* (http://eslint.org/docs/rules/#ecmascript-6)
|
||||||
*/
|
*/
|
||||||
// Don't require parens in arrow function arguments
|
|
||||||
// http://eslint.org/docs/rules/arrow-parens
|
|
||||||
'arrow-parens': [0],
|
|
||||||
|
|
||||||
// Ignore built-in import sorting for eslint-plugin-import's version
|
|
||||||
// http://eslint.org/docs/rules/sort-imports
|
|
||||||
'sort-imports': [0],
|
|
||||||
'arrow-body-style': [0],
|
'arrow-body-style': [0],
|
||||||
'arrow-parens': [0],
|
'arrow-parens': [0],
|
||||||
'arrow-spacing': [0],
|
'arrow-spacing': [0],
|
||||||
@ -235,4 +228,4 @@ module.exports = {
|
|||||||
'template-curly-spacing': [0],
|
'template-curly-spacing': [0],
|
||||||
'yield-star-spacing': [0],
|
'yield-star-spacing': [0],
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
"browser": "./dist/browser/bigchaindb-driver.cjs2.min.js",
|
"browser": "./dist/browser/bigchaindb-driver.cjs2.min.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint ./{src,test,examples}/**/*.js",
|
"lint": "eslint .",
|
||||||
"build": "npm run clean && npm run build:cjs && npm run build:dist",
|
"build": "npm run clean && npm run build:cjs && npm run build:dist",
|
||||||
"build:bundle": "webpack",
|
"build:bundle": "webpack",
|
||||||
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
|
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",
|
||||||
|
Loading…
Reference in New Issue
Block a user