immosquare-cleaner 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/lib/immosquare-cleaner.rb +2 -2
- data/linters/eslint.config.mjs +30 -0
- data/linters/rubocop-3.2.2.yml +2 -0
- data/node_modules/function-bind/README.md +27 -25
- data/node_modules/function-bind/implementation.js +12 -44
- data/node_modules/function-bind/package.json +14 -38
- data/node_modules/is-core-module/CHANGELOG.md +0 -7
- data/node_modules/is-core-module/index.js +2 -2
- data/node_modules/is-core-module/package.json +4 -4
- data/package.json +2 -4
- metadata +3 -180
- data/linters/eslintrc.json +0 -57
- data/node_modules/.bin/rimraf +0 -1
- data/node_modules/eslint-config-airbnb-base/CHANGELOG.md +0 -374
- data/node_modules/eslint-config-airbnb-base/LICENSE.md +0 -21
- data/node_modules/eslint-config-airbnb-base/README.md +0 -112
- data/node_modules/eslint-config-airbnb-base/index.js +0 -17
- data/node_modules/eslint-config-airbnb-base/legacy.js +0 -34
- data/node_modules/eslint-config-airbnb-base/node_modules/semver/LICENSE +0 -15
- data/node_modules/eslint-config-airbnb-base/node_modules/semver/README.md +0 -443
- data/node_modules/eslint-config-airbnb-base/node_modules/semver/bin/semver.js +0 -174
- data/node_modules/eslint-config-airbnb-base/node_modules/semver/package.json +0 -38
- data/node_modules/eslint-config-airbnb-base/node_modules/semver/range.bnf +0 -16
- data/node_modules/eslint-config-airbnb-base/node_modules/semver/semver.js +0 -1643
- data/node_modules/eslint-config-airbnb-base/package.json +0 -95
- data/node_modules/eslint-config-airbnb-base/rules/best-practices.js +0 -408
- data/node_modules/eslint-config-airbnb-base/rules/errors.js +0 -179
- data/node_modules/eslint-config-airbnb-base/rules/es6.js +0 -185
- data/node_modules/eslint-config-airbnb-base/rules/imports.js +0 -273
- data/node_modules/eslint-config-airbnb-base/rules/node.js +0 -43
- data/node_modules/eslint-config-airbnb-base/rules/strict.js +0 -6
- data/node_modules/eslint-config-airbnb-base/rules/style.js +0 -529
- data/node_modules/eslint-config-airbnb-base/rules/variables.js +0 -56
- data/node_modules/eslint-config-airbnb-base/test/requires.js +0 -13
- data/node_modules/eslint-config-airbnb-base/test/test-base.js +0 -32
- data/node_modules/eslint-config-airbnb-base/whitespace-async.js +0 -96
- data/node_modules/eslint-config-airbnb-base/whitespace.js +0 -102
- data/node_modules/eslint-plugin-import/CHANGELOG.md +0 -1925
- data/node_modules/eslint-plugin-import/CONTRIBUTING.md +0 -84
- data/node_modules/eslint-plugin-import/LICENSE +0 -22
- data/node_modules/eslint-plugin-import/README.md +0 -500
- data/node_modules/eslint-plugin-import/RELEASE.md +0 -54
- data/node_modules/eslint-plugin-import/SECURITY.md +0 -11
- data/node_modules/eslint-plugin-import/config/electron.js +0 -8
- data/node_modules/eslint-plugin-import/config/errors.js +0 -14
- data/node_modules/eslint-plugin-import/config/react-native.js +0 -13
- data/node_modules/eslint-plugin-import/config/react.js +0 -18
- data/node_modules/eslint-plugin-import/config/recommended.js +0 -28
- data/node_modules/eslint-plugin-import/config/stage-0.js +0 -12
- data/node_modules/eslint-plugin-import/config/typescript.js +0 -34
- data/node_modules/eslint-plugin-import/config/warnings.js +0 -12
- data/node_modules/eslint-plugin-import/docs/rules/consistent-type-specifier-style.md +0 -91
- data/node_modules/eslint-plugin-import/docs/rules/default.md +0 -72
- data/node_modules/eslint-plugin-import/docs/rules/dynamic-import-chunkname.md +0 -92
- data/node_modules/eslint-plugin-import/docs/rules/export.md +0 -37
- data/node_modules/eslint-plugin-import/docs/rules/exports-last.md +0 -51
- data/node_modules/eslint-plugin-import/docs/rules/extensions.md +0 -174
- data/node_modules/eslint-plugin-import/docs/rules/first.md +0 -75
- data/node_modules/eslint-plugin-import/docs/rules/group-exports.md +0 -118
- data/node_modules/eslint-plugin-import/docs/rules/imports-first.md +0 -9
- data/node_modules/eslint-plugin-import/docs/rules/max-dependencies.md +0 -70
- data/node_modules/eslint-plugin-import/docs/rules/named.md +0 -102
- data/node_modules/eslint-plugin-import/docs/rules/namespace.md +0 -106
- data/node_modules/eslint-plugin-import/docs/rules/newline-after-import.md +0 -167
- data/node_modules/eslint-plugin-import/docs/rules/no-absolute-path.md +0 -54
- data/node_modules/eslint-plugin-import/docs/rules/no-amd.md +0 -37
- data/node_modules/eslint-plugin-import/docs/rules/no-anonymous-default-export.md +0 -83
- data/node_modules/eslint-plugin-import/docs/rules/no-commonjs.md +0 -96
- data/node_modules/eslint-plugin-import/docs/rules/no-cycle.md +0 -111
- data/node_modules/eslint-plugin-import/docs/rules/no-default-export.md +0 -65
- data/node_modules/eslint-plugin-import/docs/rules/no-deprecated.md +0 -62
- data/node_modules/eslint-plugin-import/docs/rules/no-duplicates.md +0 -109
- data/node_modules/eslint-plugin-import/docs/rules/no-dynamic-require.md +0 -25
- data/node_modules/eslint-plugin-import/docs/rules/no-empty-named-blocks.md +0 -49
- data/node_modules/eslint-plugin-import/docs/rules/no-extraneous-dependencies.md +0 -139
- data/node_modules/eslint-plugin-import/docs/rules/no-import-module-exports.md +0 -81
- data/node_modules/eslint-plugin-import/docs/rules/no-internal-modules.md +0 -136
- data/node_modules/eslint-plugin-import/docs/rules/no-mutable-exports.md +0 -54
- data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default-member.md +0 -52
- data/node_modules/eslint-plugin-import/docs/rules/no-named-as-default.md +0 -53
- data/node_modules/eslint-plugin-import/docs/rules/no-named-default.md +0 -36
- data/node_modules/eslint-plugin-import/docs/rules/no-named-export.md +0 -79
- data/node_modules/eslint-plugin-import/docs/rules/no-namespace.md +0 -44
- data/node_modules/eslint-plugin-import/docs/rules/no-nodejs-modules.md +0 -42
- data/node_modules/eslint-plugin-import/docs/rules/no-relative-packages.md +0 -70
- data/node_modules/eslint-plugin-import/docs/rules/no-relative-parent-imports.md +0 -123
- data/node_modules/eslint-plugin-import/docs/rules/no-restricted-paths.md +0 -198
- data/node_modules/eslint-plugin-import/docs/rules/no-self-import.md +0 -32
- data/node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md +0 -60
- data/node_modules/eslint-plugin-import/docs/rules/no-unresolved.md +0 -110
- data/node_modules/eslint-plugin-import/docs/rules/no-unused-modules.md +0 -125
- data/node_modules/eslint-plugin-import/docs/rules/no-useless-path-segments.md +0 -85
- data/node_modules/eslint-plugin-import/docs/rules/no-webpack-loader-syntax.md +0 -39
- data/node_modules/eslint-plugin-import/docs/rules/order.md +0 -365
- data/node_modules/eslint-plugin-import/docs/rules/prefer-default-export.md +0 -185
- data/node_modules/eslint-plugin-import/docs/rules/unambiguous.md +0 -57
- data/node_modules/eslint-plugin-import/lib/ExportMap.js +0 -856
- data/node_modules/eslint-plugin-import/lib/core/importType.js +0 -129
- data/node_modules/eslint-plugin-import/lib/core/packagePath.js +0 -22
- data/node_modules/eslint-plugin-import/lib/core/staticRequire.js +0 -11
- data/node_modules/eslint-plugin-import/lib/docsUrl.js +0 -8
- data/node_modules/eslint-plugin-import/lib/importDeclaration.js +0 -5
- data/node_modules/eslint-plugin-import/lib/index.js +0 -71
- data/node_modules/eslint-plugin-import/lib/rules/consistent-type-specifier-style.js +0 -221
- data/node_modules/eslint-plugin-import/lib/rules/default.js +0 -40
- data/node_modules/eslint-plugin-import/lib/rules/dynamic-import-chunkname.js +0 -120
- data/node_modules/eslint-plugin-import/lib/rules/export.js +0 -250
- data/node_modules/eslint-plugin-import/lib/rules/exports-last.js +0 -40
- data/node_modules/eslint-plugin-import/lib/rules/extensions.js +0 -193
- data/node_modules/eslint-plugin-import/lib/rules/first.js +0 -144
- data/node_modules/eslint-plugin-import/lib/rules/group-exports.js +0 -155
- data/node_modules/eslint-plugin-import/lib/rules/imports-first.js +0 -16
- data/node_modules/eslint-plugin-import/lib/rules/max-dependencies.js +0 -60
- data/node_modules/eslint-plugin-import/lib/rules/named.js +0 -143
- data/node_modules/eslint-plugin-import/lib/rules/namespace.js +0 -218
- data/node_modules/eslint-plugin-import/lib/rules/newline-after-import.js +0 -237
- data/node_modules/eslint-plugin-import/lib/rules/no-absolute-path.js +0 -40
- data/node_modules/eslint-plugin-import/lib/rules/no-amd.js +0 -47
- data/node_modules/eslint-plugin-import/lib/rules/no-anonymous-default-export.js +0 -103
- data/node_modules/eslint-plugin-import/lib/rules/no-commonjs.js +0 -141
- data/node_modules/eslint-plugin-import/lib/rules/no-cycle.js +0 -158
- data/node_modules/eslint-plugin-import/lib/rules/no-default-export.js +0 -43
- data/node_modules/eslint-plugin-import/lib/rules/no-deprecated.js +0 -138
- data/node_modules/eslint-plugin-import/lib/rules/no-duplicates.js +0 -354
- data/node_modules/eslint-plugin-import/lib/rules/no-dynamic-require.js +0 -77
- data/node_modules/eslint-plugin-import/lib/rules/no-empty-named-blocks.js +0 -105
- data/node_modules/eslint-plugin-import/lib/rules/no-extraneous-dependencies.js +0 -301
- data/node_modules/eslint-plugin-import/lib/rules/no-import-module-exports.js +0 -85
- data/node_modules/eslint-plugin-import/lib/rules/no-internal-modules.js +0 -144
- data/node_modules/eslint-plugin-import/lib/rules/no-mutable-exports.js +0 -59
- data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default-member.js +0 -96
- data/node_modules/eslint-plugin-import/lib/rules/no-named-as-default.js +0 -45
- data/node_modules/eslint-plugin-import/lib/rules/no-named-default.js +0 -31
- data/node_modules/eslint-plugin-import/lib/rules/no-named-export.js +0 -39
- data/node_modules/eslint-plugin-import/lib/rules/no-namespace.js +0 -175
- data/node_modules/eslint-plugin-import/lib/rules/no-nodejs-modules.js +0 -44
- data/node_modules/eslint-plugin-import/lib/rules/no-relative-packages.js +0 -71
- data/node_modules/eslint-plugin-import/lib/rules/no-relative-parent-imports.js +0 -48
- data/node_modules/eslint-plugin-import/lib/rules/no-restricted-paths.js +0 -245
- data/node_modules/eslint-plugin-import/lib/rules/no-self-import.js +0 -39
- data/node_modules/eslint-plugin-import/lib/rules/no-unassigned-import.js +0 -79
- data/node_modules/eslint-plugin-import/lib/rules/no-unresolved.js +0 -60
- data/node_modules/eslint-plugin-import/lib/rules/no-unused-modules.js +0 -945
- data/node_modules/eslint-plugin-import/lib/rules/no-useless-path-segments.js +0 -147
- data/node_modules/eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js +0 -26
- data/node_modules/eslint-plugin-import/lib/rules/order.js +0 -785
- data/node_modules/eslint-plugin-import/lib/rules/prefer-default-export.js +0 -116
- data/node_modules/eslint-plugin-import/lib/rules/unambiguous.js +0 -38
- data/node_modules/eslint-plugin-import/memo-parser/LICENSE +0 -22
- data/node_modules/eslint-plugin-import/memo-parser/README.md +0 -21
- data/node_modules/eslint-plugin-import/memo-parser/index.js +0 -41
- data/node_modules/eslint-plugin-import/node_modules/debug/CHANGELOG.md +0 -395
- data/node_modules/eslint-plugin-import/node_modules/debug/LICENSE +0 -19
- data/node_modules/eslint-plugin-import/node_modules/debug/README.md +0 -437
- data/node_modules/eslint-plugin-import/node_modules/debug/node.js +0 -1
- data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/index.js +0 -162
- data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/license.md +0 -21
- data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/package.json +0 -38
- data/node_modules/eslint-plugin-import/node_modules/debug/node_modules/ms/readme.md +0 -59
- data/node_modules/eslint-plugin-import/node_modules/debug/package.json +0 -51
- data/node_modules/eslint-plugin-import/node_modules/debug/src/browser.js +0 -180
- data/node_modules/eslint-plugin-import/node_modules/debug/src/common.js +0 -249
- data/node_modules/eslint-plugin-import/node_modules/debug/src/index.js +0 -12
- data/node_modules/eslint-plugin-import/node_modules/debug/src/node.js +0 -177
- data/node_modules/eslint-plugin-import/node_modules/doctrine/CHANGELOG.md +0 -94
- data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE +0 -177
- data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.closure-compiler +0 -202
- data/node_modules/eslint-plugin-import/node_modules/doctrine/LICENSE.esprima +0 -19
- data/node_modules/eslint-plugin-import/node_modules/doctrine/README.md +0 -165
- data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/doctrine.js +0 -899
- data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/typed.js +0 -1305
- data/node_modules/eslint-plugin-import/node_modules/doctrine/lib/utility.js +0 -35
- data/node_modules/eslint-plugin-import/node_modules/doctrine/package.json +0 -57
- data/node_modules/eslint-plugin-import/node_modules/minimatch/LICENSE +0 -15
- data/node_modules/eslint-plugin-import/node_modules/minimatch/README.md +0 -230
- data/node_modules/eslint-plugin-import/node_modules/minimatch/minimatch.js +0 -947
- data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/LICENSE +0 -21
- data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- data/node_modules/eslint-plugin-import/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- data/node_modules/eslint-plugin-import/node_modules/minimatch/package.json +0 -33
- data/node_modules/eslint-plugin-import/node_modules/semver/LICENSE +0 -15
- data/node_modules/eslint-plugin-import/node_modules/semver/README.md +0 -443
- data/node_modules/eslint-plugin-import/node_modules/semver/bin/semver.js +0 -174
- data/node_modules/eslint-plugin-import/node_modules/semver/package.json +0 -38
- data/node_modules/eslint-plugin-import/node_modules/semver/range.bnf +0 -16
- data/node_modules/eslint-plugin-import/node_modules/semver/semver.js +0 -1643
- data/node_modules/eslint-plugin-import/package.json +0 -124
- data/node_modules/function-bind/CHANGELOG.md +0 -136
data/linters/eslintrc.json
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"env": {
|
3
|
-
"browser": true,
|
4
|
-
"es2021": true
|
5
|
-
},
|
6
|
-
"ignorePatterns": [
|
7
|
-
"package.json"
|
8
|
-
],
|
9
|
-
"extends": [
|
10
|
-
"airbnb-base"
|
11
|
-
],
|
12
|
-
"overrides": [],
|
13
|
-
"parserOptions": {
|
14
|
-
"ecmaVersion": "latest",
|
15
|
-
"sourceType": "module"
|
16
|
-
},
|
17
|
-
"rules": {
|
18
|
-
"quotes": [
|
19
|
-
2,
|
20
|
-
"double"
|
21
|
-
],
|
22
|
-
"semi": [
|
23
|
-
2,
|
24
|
-
"never"
|
25
|
-
],
|
26
|
-
"camelcase": 0,
|
27
|
-
"no-console": 0,
|
28
|
-
"no-restricted-globals": 0,
|
29
|
-
"no-multi-spaces": 0,
|
30
|
-
"no-undef": 0,
|
31
|
-
"radix": 0,
|
32
|
-
"key-spacing": [
|
33
|
-
2,
|
34
|
-
{
|
35
|
-
"align": "value"
|
36
|
-
}
|
37
|
-
],
|
38
|
-
"max-len": 0,
|
39
|
-
"no-unused-expressions": 0,
|
40
|
-
"padded-blocks": 0,
|
41
|
-
"no-multiple-empty-lines": 0,
|
42
|
-
"default-case": 0,
|
43
|
-
"no-alert": 0,
|
44
|
-
"no-lonely-if": 0,
|
45
|
-
"no-nested-ternary": 0,
|
46
|
-
"no-param-reassign": [
|
47
|
-
"error",
|
48
|
-
{
|
49
|
-
"props": false
|
50
|
-
}
|
51
|
-
],
|
52
|
-
"comma-dangle": [
|
53
|
-
"error",
|
54
|
-
"never"
|
55
|
-
]
|
56
|
-
}
|
57
|
-
}
|
data/node_modules/.bin/rimraf
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
../rimraf/bin.js
|
@@ -1,374 +0,0 @@
|
|
1
|
-
15.0.0 / 2021-11-08
|
2
|
-
==================
|
3
|
-
- [breaking] drop eslint < 7, add eslint 8 (#2495)
|
4
|
-
- [breaking] add `exports`
|
5
|
-
- [patch] Improve `function-paren-newline` with `multiline-arguments` option (#2471)
|
6
|
-
- [patch] update default value for complexity (#2420)
|
7
|
-
- [patch] add disabled `no-unsafe-optional-chaining` rule
|
8
|
-
- [patch] arthmetic -> arithmetic (#2341)
|
9
|
-
- [patch] fix spelling of "than" (#2333)
|
10
|
-
- [patch] add `no-nonoctal-decimal-escape` rule
|
11
|
-
- [patch] `import/no-extraneous-dependencies`: Add .eslintrc.js to devDeps (#2329)
|
12
|
-
- [guide] Spread operator => Spread syntax (#2423)
|
13
|
-
- [guide] add references for eslint rules (#2419)
|
14
|
-
- [Docs] HTTP => HTTPS (#2489)
|
15
|
-
- [readme] some updates
|
16
|
-
- [meta] use `prepublishOnly` script for npm 7+
|
17
|
-
- [deps] update `eslint-plugin-import`, `eslint-plugin-react`, `object.entries`
|
18
|
-
- [dev deps] update `@babel/runtime`, ``tape`
|
19
|
-
|
20
|
-
14.2.1 / 2020-11-06
|
21
|
-
==================
|
22
|
-
- [base] `no-restricted-globals`: add better messages (#2320)
|
23
|
-
- [base] add new core eslint rules, set to off
|
24
|
-
- [deps] update `confusing-browser-globals`, `object.assign`
|
25
|
-
- [deps] update `eslint-plugin-import`, use valid `import/no-cycle` `maxDepth` option (#2250, #2249)
|
26
|
-
- [dev deps] update `@babel/runtime`, `eslint-find-rules`, `eslint-plugin-import`
|
27
|
-
|
28
|
-
14.2.0 / 2020-06-10
|
29
|
-
==================
|
30
|
-
- [new] add `eslint` `v7`
|
31
|
-
- [minor] Disallow multiple empty lines (#2238)
|
32
|
-
- [minor] Fix typo in no-multiple-empty-lines rule (#2168)
|
33
|
-
- [patch] Include 'context' exception for `no-param-reassign` (#2230)
|
34
|
-
- [patch] Allow triple-slash (///) comments (#2197)
|
35
|
-
- [patch] Disable `prefer-object-spread` for `airbnb-base/legacy` (#2198)
|
36
|
-
- [deps] update `eslint-plugin-import`, `eslint-plugin-react`, `babel-preset-airbnb`, `eslint-find-rules`, `in-publish`, `tape`, `object.entries`
|
37
|
-
|
38
|
-
14.1.0 / 2020-03-12
|
39
|
-
==================
|
40
|
-
- [minor] add new disabled rules, update eslint
|
41
|
-
- [minor] enable `import/no-useless-path-segments` for commonjs (#2113)
|
42
|
-
- [fix] `whitespace`: only set erroring rules to "warn"
|
43
|
-
- Fix indentation with JSX Fragments (#2157)
|
44
|
-
- [patch] `import/no-extraneous-dependencies`: Support karma config files (#2121)
|
45
|
-
- [readme] normalize multiline word according to merriam-webster (#2138)
|
46
|
-
- [deps] update `eslint`, `eslint-plugin-import`, `eslint-plugin-react`, `object.entries`, `confusing-browser-globals`
|
47
|
-
- [dev deps] update `@babel/runtime`, `babel-preset-airbnb`, `safe-publish-latest`, `tape`
|
48
|
-
- [tests] re-enable eslint rule `prefer-destructuring` internally (#2110)
|
49
|
-
|
50
|
-
14.0.0 / 2019-08-09
|
51
|
-
==================
|
52
|
-
- [breaking] `no-self-assign`: enable `props` option
|
53
|
-
- [breaking] enable `no-useless-catch`
|
54
|
-
- [breaking] enable `max-classes-per-file`
|
55
|
-
- [breaking] enable `no-misleading-character-class`
|
56
|
-
- [breaking] enable `no-async-promise-executor`
|
57
|
-
- [breaking] enable `prefer-object-spread`
|
58
|
-
- [breaking] `func-name-matching`: enable `considerPropertyDescriptor` option
|
59
|
-
- [breaking] `padded-blocks`: enable `allowSingleLineBlocks` option (#1255)
|
60
|
-
- [breaking] `no-multiple-empty-lines`: Restrict empty lines at beginning of file (#2042)
|
61
|
-
- [breaking] Set 'strict' to 'never' (#1962)
|
62
|
-
- [breaking] legacy: Enable 'strict' (#1962)
|
63
|
-
- [breaking] Simplifies `no-mixed-operators` (#1864)
|
64
|
-
- [breaking] Require parens for arrow function args (#1863)
|
65
|
-
- [breaking] add eslint v6, drop eslint v4
|
66
|
-
- [patch] `camelcase`: enable ignoreDestructuring
|
67
|
-
- [patch] Add markers to spaced-comment block for Flow types (#1966)
|
68
|
-
- [patch] Do not prefer destructuring for object assignment expression (#1583)
|
69
|
-
- [deps] update `confusing-browser-globals`, `eslint-plugin-import`, `tape`, `babel-preset-airbnb`
|
70
|
-
- [dev deps] update babel-related deps to latest
|
71
|
-
- [dev deps] update `eslint-find-rules`, `eslint-plugin-import`
|
72
|
-
- [tests] only run tests in non-lint per-package travis job
|
73
|
-
- [tests] use `eclint` instead of `editorconfig-tools`
|
74
|
-
|
75
|
-
13.2.0 / 2019-07-01
|
76
|
-
==================
|
77
|
-
- [minor] Enforce dangling underscores in method names (#1907)
|
78
|
-
- [fix] disable `no-var` in legacy entry point
|
79
|
-
- [patch] Ignore property modifications of `staticContext` params (#2029)
|
80
|
-
- [patch] `no-extraneous-dependencies`: Add jest.setup.js to devDeps (#1998)
|
81
|
-
- [meta] add disabled `prefer-named-capture-group` rule
|
82
|
-
- [meta] add disabled `no-useless-catch` config
|
83
|
-
- [deps] Switch to confusing-browser-globals (#1961)
|
84
|
-
- [deps] update `object.entries`, `eslint-plugin-import`, `eslint-plugin-jsx-a11y`, `eslint-plugin-react`, `tape`
|
85
|
-
- [docs] correct JavaScript capitalization (#2046)
|
86
|
-
- [readme] Improve eslint config setup instructions for yarn (#2001)
|
87
|
-
- [docs] fix docs for whitespace config (#1914, #1871)
|
88
|
-
|
89
|
-
13.1.0 / 2018-08-13
|
90
|
-
==================
|
91
|
-
- [new] add eslint v5 support (#1834)
|
92
|
-
- [deps] update `eslint-plugin-import`, `eslint`, `babel-preset-airbnb`, `safe-publish-latest`, `eslint-find-rules`
|
93
|
-
- [docs] fix typo in readme (#1855)
|
94
|
-
- [new] update base ecmaVersion to 2018; remove deprecated experimentalObjectRestSpread option
|
95
|
-
|
96
|
-
13.0.0 / 2018-06-21
|
97
|
-
==================
|
98
|
-
- [breaking] order of import statements is ignored for unassigned imports (#1782)
|
99
|
-
- [breaking] enable `import/no-cycle`: warn on cyclical dependencies (#1779)
|
100
|
-
- [breaking] Change import/no-self-import from "off" to "error" (#1770)
|
101
|
-
- [breaking] Update `object-curly-newline` to match eslint 4.18.0 (#1761)
|
102
|
-
- [breaking] enable `no-useless-path-segments` (#1743)
|
103
|
-
- [breaking] Prevent line breaks before and after `=` (#1710)
|
104
|
-
- [breaking] Add .mjs extension support (#1634)
|
105
|
-
- [breaking] enable `implicit-arrow-linebreak`
|
106
|
-
- [breaking] Enables `nonblock-statement-body-position` rule and adds link to guide (#1618)
|
107
|
-
- [breaking] `no-mixed-operators`: only warn on `**` and `%` mixed with arithmetic operators; removes violation against mixing common math operators. (#1611)
|
108
|
-
- [breaking] `import/named`: enable
|
109
|
-
- [breaking] `lines-between-class-members`: set to “always”
|
110
|
-
- [breaking] `no-else-return`: disallow else-if (#1595)
|
111
|
-
- [breaking] Enables eslint rule for operator-linebreak
|
112
|
-
- [new] Adds config entry point with only whitespace rules enabled (#1749, #1751)
|
113
|
-
- [minor] only allow one newline at the end (#1794)
|
114
|
-
- [patch] Adjust imports for vue-cli (#1809)
|
115
|
-
- [patch] Allow devDependencies for `foo_spec.js` naming style (#1732)
|
116
|
-
- [patch] `function-paren-newline`: change to "consistent"
|
117
|
-
- [patch] avoid `__mocks__` `no-extraneous-dependencies` check (#1772)
|
118
|
-
- [patch] Include 'accumulator' exception for `no-param-reassign` (#1768)
|
119
|
-
- [patch] Set import/extensions to ignorePackages (#1652)
|
120
|
-
- [patch] properly ignore indentation on jsx
|
121
|
-
- [patch] `array-callback-return`: enable `allowImplicit` option (#1668)
|
122
|
-
- [deps] update `eslint`, `eslint-plugin-import`
|
123
|
-
- [dev deps] update `babel-preset-airbnb`, `tape`, `eslint-find-rules`
|
124
|
-
- [meta] add ES2015-2018 in npm package keywords (#1587)
|
125
|
-
- [meta] Add licenses to sub packages (#1746)
|
126
|
-
- [docs] add `npx` shortcut (#1694)
|
127
|
-
- [docs] Use HTTPS for links to ESLint documentation (#1628)
|
128
|
-
- [tests] ensure all entry points parse
|
129
|
-
|
130
|
-
12.1.0 / 2017-10-16
|
131
|
-
==================
|
132
|
-
- [deps] update `eslint` to `v4.9`
|
133
|
-
|
134
|
-
12.0.2 / 2017-10-05
|
135
|
-
==================
|
136
|
-
- [deps] update `eslint`
|
137
|
-
|
138
|
-
12.0.1 / 2017-09-27
|
139
|
-
==================
|
140
|
-
- [fix] ensure all JSX elements are ignored by `indent` (#1569)
|
141
|
-
- [deps] update `eslint`
|
142
|
-
|
143
|
-
12.0.0 / 2017-09-02
|
144
|
-
==================
|
145
|
-
- [deps] [breaking] require `eslint` v4
|
146
|
-
- enable `function-paren-newline`, `for-direction`, `getter-return`, `no-compare-neg-zero`, `semi-style`, `object-curly-newline`, `no-buffer-constructor`, `no-restricted-globals`, `switch-colon-spacing`, `template-tag-spacing`, `prefer-promise-reject-errors`, `prefer-destructuring`
|
147
|
-
- improve `indent`, `no-multi-spaces`, `no-trailing-spaces`, `no-underscore-dangle`
|
148
|
-
- [breaking] move `comma-dangle` to Stylistic Issues (#1514)
|
149
|
-
- [breaking] Rules prohibiting global isNaN, isFinite (#1477)
|
150
|
-
- [patch] also disallow padding in classes and switches (#1403)
|
151
|
-
- [patch] support Protractor config files in import/no-extraneous-dependencies (#1543)
|
152
|
-
|
153
|
-
11.3.2 / 2017-08-22
|
154
|
-
==================
|
155
|
-
- [patch] Add jest.config.js to import/no-extraneous-dependencies devDeps (#1522)
|
156
|
-
- [patch] Improve Gruntfile glob pattern (#1503)
|
157
|
-
- [deps] update `eslint` v4, `tape`
|
158
|
-
- [docs] Specify yarn-specific install instructions (#1511)
|
159
|
-
|
160
|
-
11.3.1 / 2017-07-24
|
161
|
-
==================
|
162
|
-
- [fix] `legacy`: remove top-level `ecmaFeatures`
|
163
|
-
|
164
|
-
11.3.0 / 2017-07-23
|
165
|
-
==================
|
166
|
-
- [deps] allow eslint v3 or v4 (#1447)
|
167
|
-
- [deps] update `eslint-plugin-import`
|
168
|
-
- [minor] Balanced spacing for inline block comments (#1440)
|
169
|
-
- [minor] `no-return-assign`: strengthen linting against returning assignments
|
170
|
-
- [patch] Allow jsx extensions for test files (#1427)
|
171
|
-
- [patch] `no-restricted-globals`: add confusing globals; leave disabled for now (#1420)
|
172
|
-
- [patch] Support Protractor config files in import/no-extraneous-dependencies (#1456)
|
173
|
-
- [docs] Remove TODO in prefer-reflect as it's deprecated (#1452)
|
174
|
-
- [docs] add yarn instructions (#1463, #1464)
|
175
|
-
|
176
|
-
11.2.0 / 2017-05-14
|
177
|
-
==================
|
178
|
-
- [minor] Disallow unused global variables
|
179
|
-
|
180
|
-
11.1.3 / 2017-04-03
|
181
|
-
==================
|
182
|
-
- [patch] add error messages to `no-restricted-syntax` (#1353)
|
183
|
-
- [deps] update `eslint`
|
184
|
-
|
185
|
-
11.1.2 / 2017-03-25
|
186
|
-
==================
|
187
|
-
- [patch] `no-param-reassign`: add ignorePropertyModificationsFor (#1325)
|
188
|
-
- [deps] update `eslint`
|
189
|
-
|
190
|
-
11.1.1 / 2017-03-03
|
191
|
-
==================
|
192
|
-
- [deps] update `eslint`
|
193
|
-
- [patch] enable `ignoreRestSiblings` in `no-unused-vars`
|
194
|
-
|
195
|
-
11.1.0 / 2017-01-08
|
196
|
-
==================
|
197
|
-
- [minor] enable `no-multi-assign`
|
198
|
-
- [deps] update `eslint`, `babel-preset-airbnb`
|
199
|
-
- Update a deprecated option (`eqeqeq`) (#1244)
|
200
|
-
|
201
|
-
11.0.1 / 2017-01-08
|
202
|
-
==================
|
203
|
-
- [deps] update `eslint`
|
204
|
-
- [docs] add note about `install-peerdeps` (#1234)
|
205
|
-
- [docs] Updated instructions to support non-bash users (#1214)
|
206
|
-
|
207
|
-
11.0.0 / 2016-12-11
|
208
|
-
==================
|
209
|
-
- [breaking] enable `no-await-in-loop`
|
210
|
-
- [patch] disable `no-duplicate-imports` rule (#1188, #1195, #1054)
|
211
|
-
- [patch] `import/no-extraneous-dependencies`: add some comments to ignore patterns
|
212
|
-
- [patch] add `import/no-extraneous-dependencies` ignore patterns for test files (#1174)
|
213
|
-
- [patch] `import/no-extraneous-dependencies`: added ignore patterns for config files (#1168)
|
214
|
-
- [deps] update `eslint`, `eslint-plugin-import`, `tape`
|
215
|
-
|
216
|
-
10.0.1 / 2016-11-07
|
217
|
-
==================
|
218
|
-
- [fix] legacy config should not require `**`
|
219
|
-
|
220
|
-
10.0.0 / 2016-11-06
|
221
|
-
==================
|
222
|
-
- [breaking] prefer `**` over `Math.pow`
|
223
|
-
- [breaking] `comma-dangle`: require trailing commas for functions
|
224
|
-
- [breaking] enable `no-useless-return`
|
225
|
-
- [breaking] tighten up `indent`
|
226
|
-
- [breaking] tighten up `spaced-comment`
|
227
|
-
- [breaking] enable `import/no-named-default`
|
228
|
-
- [patch] loosen `max-len` with `ignoreRegExpLiterals` option
|
229
|
-
- [patch] loosen `no-extraneous-dependencies` for test files (#959, #1089)
|
230
|
-
- [deps] update `eslint`, `eslint-plugin-import`
|
231
|
-
- [dev deps] update `eslint-find-rules`
|
232
|
-
- [Tests] on `node` `v7`
|
233
|
-
|
234
|
-
9.0.0 / 2016-10-16
|
235
|
-
==================
|
236
|
-
- [breaking] Add `ForOfStatement` to `no-restricted-syntax` (#1122, #1134)
|
237
|
-
- [breaking] enable `import/no-webpack-loader-syntax` (#1123)
|
238
|
-
- [breaking] [deps] update `eslint` to `v3.8.0` (#1132)
|
239
|
-
- [breaking] [deps] update `eslint-plugin-import` to v2 (#1101)
|
240
|
-
- [patch] `new-cap`: add immutable.js exceptions
|
241
|
-
- [docs] ensure latest version of config is installed
|
242
|
-
- [dev deps] update `babel-preset-airbnb`, `eslint`, `eslint-find-rules`, `tape`, `safe-publish-latest`
|
243
|
-
|
244
|
-
8.0.0 / 2016-09-24
|
245
|
-
==================
|
246
|
-
- [breaking] enable rules: `no-restricted-properties`, `prefer-numeric-literals`, `lines-around-directive`, `import/extensions`, `import/no-absolute-path`, `import/no-dynamic-require`
|
247
|
-
|
248
|
-
7.2.0 / 2016-09-23
|
249
|
-
==================
|
250
|
-
- [new] set `ecmaVersion` to 2017; enable object rest/spread; update `babel-preset-airbnb`
|
251
|
-
- [patch] fix category of `no-restricted-properties`
|
252
|
-
- [deps] update `eslint`, `eslint-plugin-import`, `eslint-find-rules`, `safe-publish-latest`
|
253
|
-
|
254
|
-
7.1.0 / 2016-09-11
|
255
|
-
==================
|
256
|
-
- [minor] enable `arrow-parens` rule
|
257
|
-
|
258
|
-
7.0.1 / 2016-09-10
|
259
|
-
==================
|
260
|
-
- [patch] loosen `max-len` by ignoring strings
|
261
|
-
- [deps] update to `eslint` `v3.5.0`
|
262
|
-
|
263
|
-
7.0.0 / 2016-09-06
|
264
|
-
==================
|
265
|
-
- [breaking] Add no-plusplus in style.js and added explanation in README (#1012)
|
266
|
-
|
267
|
-
6.0.0 / 2016-09-06
|
268
|
-
==================
|
269
|
-
- [breaking] `valid-typeof`: enable `requireStringLiterals` option
|
270
|
-
- [breaking] enable `class-methods-use-this`
|
271
|
-
- [breaking] enable `symbol-description`
|
272
|
-
- [breaking] enable `no-bitwise`
|
273
|
-
- [breaking] enable `no-tabs`
|
274
|
-
- [breaking] enable `func-call-spacing`
|
275
|
-
- [breaking] enable `no-template-curly-in-string`
|
276
|
-
- [patch] remove redundant `DebuggerStatement` from `no-restricted-syntax` (#1031)
|
277
|
-
- [deps] update `eslint`, `eslint-find-rules`, `eslint-plugin-import`
|
278
|
-
- Update `ecmaVersion` to `2016`
|
279
|
-
|
280
|
-
5.0.3 / 2016-08-21
|
281
|
-
==================
|
282
|
-
- [fix] correct `import/extensions` list (#1013)
|
283
|
-
- [refactor] Changed ESLint rule configs to use 'off', 'warn', and 'error' instead of numbers for better readability (#946)
|
284
|
-
- [deps] update `eslint`, `eslint-plugin-react`
|
285
|
-
|
286
|
-
5.0.2 / 2016-08-12
|
287
|
-
==================
|
288
|
-
- [deps] update `eslint`, `eslint-find-rules`, `eslint-plugin-import`
|
289
|
-
- [tests] add `safe-publish-latest` to `prepublish`
|
290
|
-
|
291
|
-
5.0.1 / 2016-07-29
|
292
|
-
==================
|
293
|
-
- [patch] `no-unused-expressions`: flesh out options
|
294
|
-
- [deps] update `eslint` to `v3.2`, `eslint-plugin-import` to `v1.12`
|
295
|
-
- [tests] improve prepublish script
|
296
|
-
|
297
|
-
5.0.0 / 2016-07-24
|
298
|
-
==================
|
299
|
-
- [breaking] enable `import/newline-after-import`
|
300
|
-
- [breaking] enable overlooked rules: `linebreak-style`, `new-parens`, `no-continue`, `no-lonely-if`, `operator-assignment`, `space-unary-ops`, `dot-location`, `no-extra-boolean-cast`, `no-this-before-super`, `require-yield`, `no-path-concat`, `no-label-var`, `no-void`, `constructor-super`, `prefer-spread`, `no-new-require`, `no-undef-init`, `no-unexpected-multiline`
|
301
|
-
- [deps] update `eslint`, `eslint-find-rules`, `eslint-plugin-import`, `babel-tape-runner`; add `babel-preset-airbnb`
|
302
|
-
- [patch] flesh out defaults: `jsx-quotes`
|
303
|
-
- [docs] update the peer dep install command to dynamically look up the right version numbers when installing peer deps
|
304
|
-
- [tests] fix prepublish scripts
|
305
|
-
|
306
|
-
4.0.2 / 2016-07-14
|
307
|
-
==================
|
308
|
-
- [fix] repair accidental comma-dangle change
|
309
|
-
|
310
|
-
4.0.1 / 2016-07-14 (unpublished)
|
311
|
-
==================
|
312
|
-
- [fix] Prevent trailing commas in the legacy config (#950)
|
313
|
-
- [deps] update `eslint-plugin-import`
|
314
|
-
|
315
|
-
4.0.0 / 2016-07-02
|
316
|
-
==================
|
317
|
-
- [breaking] [deps] update `eslint` to v3; drop support for < node 4
|
318
|
-
- [breaking] enable `rest-spread-spacing` rule
|
319
|
-
- [breaking] enable `no-mixed-operators` rule
|
320
|
-
- [breaking] enable `import` rules: `no-named-as-default`, `no-named-as-default-member`, `no-extraneous-dependencies`
|
321
|
-
- [breaking] enable `object-property-newline` rule
|
322
|
-
- [breaking] enable `no-prototype-builtins` rule
|
323
|
-
- [breaking] enable `no-useless-rename` rule
|
324
|
-
- [breaking] enable `unicode-bom` rule
|
325
|
-
- [breaking] Enforce proper generator star spacing (#887)
|
326
|
-
- [breaking] Enable imports/imports-first rule (#882)
|
327
|
-
- [breaking] re-order rules; put import rules in separate file (#881)
|
328
|
-
- [patch] `newline-per-chained-call`: bump the limit to 4
|
329
|
-
- [patch] `object-shorthand`: do not warn when the concise form would have a string literal as a name
|
330
|
-
- [patch] Loosen `prefer-const` to not warn when the variable is “read” before being assigned to
|
331
|
-
- [refactor] fix quoting of rule properties (#885)
|
332
|
-
- [refactor] `quotes`: Use object option form rather than deprecated string form.
|
333
|
-
- [deps] update `eslint`, `eslint-plugin-import`, `eslint-find-rules`, `tape`
|
334
|
-
- [tests] Only run `eslint-find-rules` on prepublish, not in tests
|
335
|
-
|
336
|
-
3.0.1 / 2016-05-08
|
337
|
-
==================
|
338
|
-
- [patch] re-disable `no-extra-parens` (#869, #867)
|
339
|
-
|
340
|
-
3.0.0 / 2016-05-07
|
341
|
-
==================
|
342
|
-
- [breaking] enable `import/no-mutable-exports`
|
343
|
-
- [breaking] enable `no-class-assign` rule, to pair with `no-func-assign`
|
344
|
-
- [breaking] widen `no-extra-parens` to include everything, except `nestedBinaryExpressions`
|
345
|
-
- [breaking] Re-enabling `newline-per-chained-call` (#748)
|
346
|
-
- [minor] enable `import/no-amd`
|
347
|
-
- [patch] enable `import/no-duplicates`
|
348
|
-
- [deps] update `eslint`, `eslint-plugin-import`, `eslint-find-rules`
|
349
|
-
|
350
|
-
2.0.0 / 2016-04-29
|
351
|
-
==================
|
352
|
-
- [breaking] enable `no-unsafe-finally` rule
|
353
|
-
- [semver-minor] enable `no-useless-computed-key` rule
|
354
|
-
- [deps] update `eslint`, `eslint-plugin-import`
|
355
|
-
|
356
|
-
1.0.4 / 2016-04-26
|
357
|
-
==================
|
358
|
-
- [deps] update `eslint-find-rules`, `eslint-plugin-import`
|
359
|
-
|
360
|
-
1.0.3 / 2016-04-21
|
361
|
-
==================
|
362
|
-
- [patch: loosen rules] Allow empty class/object methods
|
363
|
-
|
364
|
-
1.0.2 / 2016-04-20
|
365
|
-
==================
|
366
|
-
- [patch: loosen rules] Allow `break` (#840)
|
367
|
-
|
368
|
-
1.0.1 / 2016-04-19
|
369
|
-
==================
|
370
|
-
- [patch: loosen rules] Allow `== null` (#542)
|
371
|
-
|
372
|
-
1.0.0 / 2016-04-19
|
373
|
-
==================
|
374
|
-
- Initial commmit; moved content over from `eslint-config-airbnb` package.
|
@@ -1,21 +0,0 @@
|
|
1
|
-
MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2012 Airbnb
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
@@ -1,112 +0,0 @@
|
|
1
|
-
# eslint-config-airbnb-base <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
2
|
-
|
3
|
-
[![npm version](https://badge.fury.io/js/eslint-config-airbnb-base.svg)][package-url]
|
4
|
-
|
5
|
-
[![github actions][actions-image]][actions-url]
|
6
|
-
[![License][license-image]][license-url]
|
7
|
-
[![Downloads][downloads-image]][downloads-url]
|
8
|
-
|
9
|
-
This package provides Airbnb's base JS .eslintrc (without React plugins) as an extensible shared config.
|
10
|
-
|
11
|
-
## Usage
|
12
|
-
|
13
|
-
We export two ESLint configurations for your usage.
|
14
|
-
|
15
|
-
### eslint-config-airbnb-base
|
16
|
-
|
17
|
-
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires `eslint` and `eslint-plugin-import`.
|
18
|
-
|
19
|
-
1. Install the correct versions of each package, which are listed by the command:
|
20
|
-
|
21
|
-
```sh
|
22
|
-
npm info "eslint-config-airbnb-base@latest" peerDependencies
|
23
|
-
```
|
24
|
-
|
25
|
-
If using **npm 5+**, use this shortcut
|
26
|
-
|
27
|
-
```sh
|
28
|
-
npx install-peerdeps --dev eslint-config-airbnb-base
|
29
|
-
```
|
30
|
-
|
31
|
-
If using **yarn**, you can also use the shortcut described above if you have npm 5+ installed on your machine, as the command will detect that you are using yarn and will act accordingly.
|
32
|
-
Otherwise, run `npm info "eslint-config-airbnb-base@latest" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev <dependency>@<version>` for each listed peer dependency.
|
33
|
-
|
34
|
-
|
35
|
-
If using **npm < 5**, Linux/OSX users can run
|
36
|
-
|
37
|
-
```sh
|
38
|
-
(
|
39
|
-
export PKG=eslint-config-airbnb-base;
|
40
|
-
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
|
41
|
-
)
|
42
|
-
```
|
43
|
-
|
44
|
-
Which produces and runs a command like:
|
45
|
-
|
46
|
-
```sh
|
47
|
-
npm install --save-dev eslint-config-airbnb-base eslint@^#.#.# eslint-plugin-import@^#.#.#
|
48
|
-
```
|
49
|
-
|
50
|
-
If using **npm < 5**, Windows users can either install all the peer dependencies manually, or use the [install-peerdeps](https://github.com/nathanhleung/install-peerdeps) cli tool.
|
51
|
-
|
52
|
-
```sh
|
53
|
-
npm install -g install-peerdeps
|
54
|
-
install-peerdeps --dev eslint-config-airbnb-base
|
55
|
-
```
|
56
|
-
|
57
|
-
The cli will produce and run a command like:
|
58
|
-
|
59
|
-
```sh
|
60
|
-
npm install --save-dev eslint-config-airbnb-base eslint@^#.#.# eslint-plugin-import@^#.#.#
|
61
|
-
```
|
62
|
-
|
63
|
-
2. Add `"extends": "airbnb-base"` to your .eslintrc.
|
64
|
-
|
65
|
-
### eslint-config-airbnb-base/legacy
|
66
|
-
|
67
|
-
Lints ES5 and below. Requires `eslint` and `eslint-plugin-import`.
|
68
|
-
|
69
|
-
1. Install the correct versions of each package, which are listed by the command:
|
70
|
-
|
71
|
-
```sh
|
72
|
-
npm info "eslint-config-airbnb-base@latest" peerDependencies
|
73
|
-
```
|
74
|
-
|
75
|
-
Linux/OSX users can run
|
76
|
-
```sh
|
77
|
-
(
|
78
|
-
export PKG=eslint-config-airbnb-base;
|
79
|
-
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
|
80
|
-
)
|
81
|
-
```
|
82
|
-
|
83
|
-
Which produces and runs a command like:
|
84
|
-
|
85
|
-
```sh
|
86
|
-
npm install --save-dev eslint-config-airbnb-base eslint@^#.#.# eslint-plugin-import@^#.#.#
|
87
|
-
```
|
88
|
-
|
89
|
-
2. Add `"extends": "airbnb-base/legacy"` to your .eslintrc
|
90
|
-
|
91
|
-
See [Airbnb's overarching ESLint config](https://npmjs.com/eslint-config-airbnb), [Airbnb's JavaScript styleguide](https://github.com/airbnb/javascript), and the [ESlint config docs](https://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information.
|
92
|
-
|
93
|
-
### eslint-config-airbnb-base/whitespace
|
94
|
-
|
95
|
-
This entry point only errors on whitespace rules and sets all other rules to warnings. View the list of whitespace rules [here](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/whitespace.js).
|
96
|
-
|
97
|
-
## Improving this config
|
98
|
-
|
99
|
-
Consider adding test cases if you're making complicated rules changes, like anything involving regexes. Perhaps in a distant future, we could use literate programming to structure our README as test cases for our .eslintrc?
|
100
|
-
|
101
|
-
You can run tests with `npm test`.
|
102
|
-
|
103
|
-
You can make sure this module lints with itself using `npm run lint`.
|
104
|
-
|
105
|
-
[package-url]: https://npmjs.org/package/eslint-config-airbnb-base
|
106
|
-
[npm-version-svg]: https://versionbadg.es/airbnb/javascript.svg
|
107
|
-
[license-image]: https://img.shields.io/npm/l/eslint-config-airbnb-base.svg
|
108
|
-
[license-url]: LICENSE.md
|
109
|
-
[downloads-image]: https://img.shields.io/npm/dm/eslint-config-airbnb-base.svg
|
110
|
-
[downloads-url]: https://npm-stat.com/charts.html?package=eslint-config-airbnb-base
|
111
|
-
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/airbnb/javascript
|
112
|
-
[actions-url]: https://github.com/airbnb/javascript/actions
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
extends: [
|
3
|
-
'./rules/best-practices',
|
4
|
-
'./rules/errors',
|
5
|
-
'./rules/node',
|
6
|
-
'./rules/style',
|
7
|
-
'./rules/variables',
|
8
|
-
'./rules/es6',
|
9
|
-
'./rules/imports',
|
10
|
-
'./rules/strict',
|
11
|
-
].map(require.resolve),
|
12
|
-
parserOptions: {
|
13
|
-
ecmaVersion: 2018,
|
14
|
-
sourceType: 'module',
|
15
|
-
},
|
16
|
-
rules: {},
|
17
|
-
};
|
@@ -1,34 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
extends: [
|
3
|
-
'./rules/best-practices',
|
4
|
-
'./rules/errors',
|
5
|
-
'./rules/node',
|
6
|
-
'./rules/style',
|
7
|
-
'./rules/variables'
|
8
|
-
].map(require.resolve),
|
9
|
-
env: {
|
10
|
-
browser: true,
|
11
|
-
node: true,
|
12
|
-
amd: false,
|
13
|
-
mocha: false,
|
14
|
-
jasmine: false
|
15
|
-
},
|
16
|
-
rules: {
|
17
|
-
'comma-dangle': ['error', 'never'],
|
18
|
-
'prefer-numeric-literals': 'off',
|
19
|
-
'no-restricted-properties': ['error', {
|
20
|
-
object: 'arguments',
|
21
|
-
property: 'callee',
|
22
|
-
message: 'arguments.callee is deprecated',
|
23
|
-
}, {
|
24
|
-
property: '__defineGetter__',
|
25
|
-
message: 'Please use Object.defineProperty instead.',
|
26
|
-
}, {
|
27
|
-
property: '__defineSetter__',
|
28
|
-
message: 'Please use Object.defineProperty instead.',
|
29
|
-
}],
|
30
|
-
'no-var': 'off',
|
31
|
-
'prefer-object-spread': 'off',
|
32
|
-
strict: ['error', 'safe'],
|
33
|
-
}
|
34
|
-
};
|
@@ -1,15 +0,0 @@
|
|
1
|
-
The ISC License
|
2
|
-
|
3
|
-
Copyright (c) Isaac Z. Schlueter and Contributors
|
4
|
-
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
8
|
-
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
15
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|