Skip to content

Commit

Permalink
fix: reduce inconsistency among our linting rules (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Aug 18, 2020
1 parent 53363ca commit b6b675e
Show file tree
Hide file tree
Showing 32 changed files with 138 additions and 37 deletions.
2 changes: 2 additions & 0 deletions packages/ERTP/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
9 changes: 6 additions & 3 deletions packages/SwingSet/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global module */
module.exports = {
// parser: "babel-eslint",
extends: ['airbnb-base', 'plugin:prettier/recommended'],
env: {
es6: true, // supports new ES6 globals (e.g., new types such as Set)
Expand All @@ -13,12 +12,16 @@ module.exports = {
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
10 changes: 8 additions & 2 deletions packages/acorn-eventual-send/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
6 changes: 4 additions & 2 deletions packages/agoric-cli/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'import/prefer-default-export': 'off',
},
};
2 changes: 2 additions & 0 deletions packages/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
10 changes: 8 additions & 2 deletions packages/captp/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
10 changes: 8 additions & 2 deletions packages/cosmic-swingset/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
2 changes: 2 additions & 0 deletions packages/dapp-svelte-wallet/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
10 changes: 8 additions & 2 deletions packages/deployment/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
6 changes: 4 additions & 2 deletions packages/eventual-send/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand All @@ -70,8 +72,8 @@
"no-unused-expressions": "off",
"no-loop-func": "off",
"no-inner-declarations": "off",
"import/extensions": "off",
"import/prefer-default-export": "off"
"import/prefer-default-export": "off",
"import/extensions": "off"
}
},
"prettier": {
Expand Down
6 changes: 4 additions & 2 deletions packages/import-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand All @@ -64,8 +66,8 @@
"no-unused-expressions": "off",
"no-loop-func": "off",
"no-inner-declarations": "off",
"import/extensions": "off",
"import/prefer-default-export": "off"
"import/prefer-default-export": "off",
"import/extensions": "off"
}
},
"prettier": {
Expand Down
2 changes: 2 additions & 0 deletions packages/import-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/install-metering-and-ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/install-ses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
7 changes: 5 additions & 2 deletions packages/marshal/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
"varsIgnorePattern": "^_",
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
2 changes: 2 additions & 0 deletions packages/notifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/promise-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/registrar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/same-structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/sharing-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/sparse-ints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
2 changes: 2 additions & 0 deletions packages/spawner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
11 changes: 8 additions & 3 deletions packages/stat-logger/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global module */
module.exports = {
// parser: "babel-eslint",
extends: ['airbnb-base', 'plugin:prettier/recommended'],
env: {
es6: true, // supports new ES6 globals (e.g., new types such as Set)
Expand All @@ -10,13 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
2 changes: 2 additions & 0 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"function-paren-newline": "off",
"arrow-parens": "off",
"strict": "off",
"prefer-destructuring": "off",
"no-else-return": "off",
"no-console": "off",
"no-unused-vars": [
"error",
Expand Down
11 changes: 8 additions & 3 deletions packages/swing-store-lmdb/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* global module */
module.exports = {
// parser: "babel-eslint",
extends: ['airbnb-base', 'plugin:prettier/recommended'],
env: {
es6: true, // supports new ES6 globals (e.g., new types such as Set)
Expand All @@ -10,13 +9,19 @@ module.exports = {
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'prefer-destructuring': 'off',
'no-else-return': 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-unused-vars': ['error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'no-unused-expressions': 'off',
'no-loop-func': 'off',
'import/prefer-default-export': 'off', // contrary to Agoric standard
'no-inner-declarations': 'off',
'import/prefer-default-export': 'off',
},
};
Loading

0 comments on commit b6b675e

Please sign in to comment.