Force only big objects in eslint configuration to be sorted
This commit is contained in:
parent
6edb8dae05
commit
22a37fdf1d
1 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
/* eslint sort-keys: ["error", "asc", {minKeys: 5}] */
|
||||||
|
|
||||||
const globals = require("globals");
|
const globals = require("globals");
|
||||||
const js = require("@eslint/js");
|
const js = require("@eslint/js");
|
||||||
const erb = require("eslint-plugin-erb");
|
const erb = require("eslint-plugin-erb");
|
||||||
|
@ -27,8 +29,8 @@ module.exports = [
|
||||||
Cookies: "readonly",
|
Cookies: "readonly",
|
||||||
I18n: "readonly",
|
I18n: "readonly",
|
||||||
L: "readonly",
|
L: "readonly",
|
||||||
OSM: "writable",
|
|
||||||
Matomo: "readonly",
|
Matomo: "readonly",
|
||||||
|
OSM: "writable",
|
||||||
Turbo: "readonly",
|
Turbo: "readonly",
|
||||||
updateLinks: "readonly"
|
updateLinks: "readonly"
|
||||||
}
|
}
|
||||||
|
@ -43,7 +45,6 @@ module.exports = [
|
||||||
reportUnusedDisableDirectives: "off"
|
reportUnusedDisableDirectives: "off"
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
/* eslint sort-keys: ["warn"] */
|
|
||||||
"@stylistic/array-bracket-newline": ["error", "consistent"],
|
"@stylistic/array-bracket-newline": ["error", "consistent"],
|
||||||
"@stylistic/array-bracket-spacing": "error",
|
"@stylistic/array-bracket-spacing": "error",
|
||||||
"@stylistic/block-spacing": "error",
|
"@stylistic/block-spacing": "error",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue