|
@@ -1,42 +1,35 @@
|
|
|
module.exports = {
|
|
|
- env: {
|
|
|
- node: true,
|
|
|
- es6: true,
|
|
|
- mocha: true,
|
|
|
+ env: {
|
|
|
+ node: true,
|
|
|
+ es6: true,
|
|
|
+ mocha: true,
|
|
|
+ },
|
|
|
+ rules: {
|
|
|
+ 'import/no-commonjs': 'off',
|
|
|
+
|
|
|
+
|
|
|
+ 'import/no-extraneous-dependencies': 'off',
|
|
|
+ 'import/no-nodejs-modules': 'off',
|
|
|
+ 'no-console': 'off',
|
|
|
+ '@typescript-eslint/no-var-requires': 'warn',
|
|
|
+ '@typescript-eslint/camelcase': 'warn',
|
|
|
+ },
|
|
|
+ overrides: [
|
|
|
+ {
|
|
|
+ files: [
|
|
|
+ '**/test/ranges.js',
|
|
|
+ '**/test/lru.js',
|
|
|
+ '**/test/fs/walk.js',
|
|
|
+ '**/test/storage.js',
|
|
|
+ '**/test/identities.js',
|
|
|
+ '**/test/balances.js',
|
|
|
+ '**/test/assets.js',
|
|
|
+ ],
|
|
|
+ rules: {
|
|
|
+
|
|
|
+
|
|
|
+ 'no-unused-expressions': 'off',
|
|
|
+ },
|
|
|
},
|
|
|
- globals: {
|
|
|
- Atomics: "readonly",
|
|
|
- SharedArrayBuffer: "readonly",
|
|
|
- },
|
|
|
- extends: [
|
|
|
- "esnext",
|
|
|
- "esnext/style-guide",
|
|
|
- "plugin:prettier/recommended"
|
|
|
- ],
|
|
|
- "rules": {
|
|
|
- "import/no-commonjs": "off",
|
|
|
-
|
|
|
-
|
|
|
- "import/no-extraneous-dependencies": "off",
|
|
|
- "import/no-nodejs-modules": "off",
|
|
|
- "no-console": "off"
|
|
|
- },
|
|
|
- "overrides": [
|
|
|
- {
|
|
|
- "files": [
|
|
|
- "**/test/ranges.js",
|
|
|
- "**/test/lru.js",
|
|
|
- "**/test/fs/walk.js",
|
|
|
- "**/test/storage.js",
|
|
|
- "**/test/identities.js",
|
|
|
- "**/test/balances.js",
|
|
|
- "**/test/assets.js",
|
|
|
- ],
|
|
|
- "rules": {
|
|
|
-
|
|
|
-
|
|
|
- "no-unused-expressions": "off",
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
-};
|
|
|
+ ],
|
|
|
+}
|