mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
c117823dd4
* Build(deps-dev): Bump eslint-plugin-unicorn from 46.0.0 to 47.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 46.0.0 to 47.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v47.0.0) --- updated-dependencies: - dependency-name: eslint-plugin-unicorn dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Disable new rules since our currently supported browsers don't support them --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
221 lines
4.4 KiB
JSON
221 lines
4.4 KiB
JSON
{
|
|
"root": true,
|
|
"extends": [
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:unicorn/recommended",
|
|
"xo",
|
|
"xo/browser"
|
|
],
|
|
"rules": {
|
|
"arrow-body-style": "off",
|
|
"capitalized-comments": "off",
|
|
"comma-dangle": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"import/extensions": [
|
|
"error",
|
|
"ignorePackages",
|
|
{
|
|
"js": "always"
|
|
}
|
|
],
|
|
"import/first": "error",
|
|
"import/newline-after-import": "error",
|
|
"import/no-absolute-path": "error",
|
|
"import/no-amd": "error",
|
|
"import/no-cycle": [
|
|
"error",
|
|
{
|
|
"ignoreExternal": true
|
|
}
|
|
],
|
|
"import/no-duplicates": "error",
|
|
"import/no-extraneous-dependencies": "error",
|
|
"import/no-mutable-exports": "error",
|
|
"import/no-named-as-default": "error",
|
|
"import/no-named-as-default-member": "error",
|
|
"import/no-named-default": "error",
|
|
"import/no-self-import": "error",
|
|
"import/no-unassigned-import": [
|
|
"error"
|
|
],
|
|
"import/no-useless-path-segments": "error",
|
|
"import/order": "error",
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"MemberExpression": "off",
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"max-params": [
|
|
"warn",
|
|
5
|
|
],
|
|
"multiline-ternary": [
|
|
"error",
|
|
"always-multiline"
|
|
],
|
|
"new-cap": [
|
|
"error",
|
|
{
|
|
"properties": false
|
|
}
|
|
],
|
|
"no-console": "error",
|
|
"no-negated-condition": "off",
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"operator-linebreak": [
|
|
"error",
|
|
"after"
|
|
],
|
|
"prefer-template": "error",
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"strict": "error",
|
|
"unicorn/explicit-length-check": "off",
|
|
"unicorn/filename-case": "off",
|
|
"unicorn/no-array-callback-reference": "off",
|
|
"unicorn/no-array-method-this-argument": "off",
|
|
"unicorn/no-null": "off",
|
|
"unicorn/no-typeof-undefined": "off",
|
|
"unicorn/no-unused-properties": "error",
|
|
"unicorn/numeric-separators-style": "off",
|
|
"unicorn/prefer-array-flat": "off",
|
|
"unicorn/prefer-at": "off",
|
|
"unicorn/prefer-dom-node-dataset": "off",
|
|
"unicorn/prefer-module": "off",
|
|
"unicorn/prefer-query-selector": "off",
|
|
"unicorn/prefer-spread": "off",
|
|
"unicorn/prefer-string-replace-all": "off",
|
|
"unicorn/prevent-abbreviations": "off"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"build/**"
|
|
],
|
|
"env": {
|
|
"browser": false,
|
|
"node": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
},
|
|
"rules": {
|
|
"no-console": "off",
|
|
"unicorn/prefer-top-level-await": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"js/**"
|
|
],
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"js/tests/*.js",
|
|
"js/tests/integration/rollup*.js"
|
|
],
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"js/tests/unit/**"
|
|
],
|
|
"env": {
|
|
"jasmine": true
|
|
},
|
|
"rules": {
|
|
"no-console": "off",
|
|
"unicorn/consistent-function-scoping": "off",
|
|
"unicorn/no-useless-undefined": "off",
|
|
"unicorn/prefer-add-event-listener": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"js/tests/visual/**"
|
|
],
|
|
"plugins": [
|
|
"html"
|
|
],
|
|
"settings": {
|
|
"html/html-extensions": [
|
|
".html"
|
|
]
|
|
},
|
|
"rules": {
|
|
"no-console": "off",
|
|
"no-new": "off",
|
|
"unicorn/no-array-for-each": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"scss/tests/**"
|
|
],
|
|
"env": {
|
|
"node": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "script"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"site/**"
|
|
],
|
|
"env": {
|
|
"browser": true,
|
|
"node": false
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "script",
|
|
"ecmaVersion": 2019
|
|
},
|
|
"rules": {
|
|
"no-new": "off",
|
|
"unicorn/no-array-for-each": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"**/*.md"
|
|
],
|
|
"plugins": [
|
|
"markdown"
|
|
],
|
|
"processor": "markdown/markdown"
|
|
},
|
|
{
|
|
"files": [
|
|
"**/*.md/*.js"
|
|
],
|
|
"extends": "plugin:markdown/recommended",
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"unicorn/prefer-node-protocol": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|