1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-25 11:28:37 +01:00

fix: lint config

This commit is contained in:
getlarge 2021-03-09 14:19:10 +01:00
parent cc3aa3fdd3
commit 90466cf6ae
No known key found for this signature in database
GPG Key ID: E4E13243600F9566
3 changed files with 186 additions and 190 deletions

View File

@ -1,3 +1,6 @@
dist
node_modules
coverage
media
docs
compose

View File

@ -1,5 +1,5 @@
module.exports = {
extends: 'airbnb-base',
extends: ['eslint:recommended', 'airbnb-base', 'plugin:import/recommended'],
parser: '@babel/eslint-parser',
parserOptions: { requireConfigFile: false },
env: {
@ -68,7 +68,7 @@ module.exports = {
// Enforce 4-space indents, except for switch cases
// 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
// http://eslint.org/docs/rules/max-len
@ -158,7 +158,7 @@ module.exports = {
// We don't like semicolons so kill them
// http://eslint.org/docs/rules/semi
semi: [2, 'never'],
'semi': [2, 'never'],
/**
* Import rules
@ -198,13 +198,6 @@ module.exports = {
* ES6-specific Issues
* (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-parens': [0],
'arrow-spacing': [0],
@ -235,4 +228,4 @@ module.exports = {
'template-curly-spacing': [0],
'yield-star-spacing': [0],
},
};
}

View File

@ -17,7 +17,7 @@
"browser": "./dist/browser/bigchaindb-driver.cjs2.min.js",
"sideEffects": false,
"scripts": {
"lint": "eslint ./{src,test,examples}/**/*.js",
"lint": "eslint .",
"build": "npm run clean && npm run build:cjs && npm run build:dist",
"build:bundle": "webpack",
"build:cjs": "cross-env BABEL_ENV=cjs babel ./src -d dist/node",