mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 01:13:22 +01:00
fix(lint): Change endOfLine rules to better support linting on Windows (#20078)
This commit is contained in:
parent
f9649a27f8
commit
39b1996aab
@ -72,5 +72,8 @@ module.exports = {
|
||||
// upgrading eslint and dependencies. This rule should be evaluated and
|
||||
// if agreeable turned on upstream in @metamask/eslint-config
|
||||
'import/no-named-as-default-member': 'off',
|
||||
|
||||
// This is necessary to run eslint on Windows and not get a thousand CRLF errors
|
||||
'prettier/prettier': ['error', { endOfLine: 'auto' }],
|
||||
},
|
||||
};
|
||||
|
@ -1,2 +1,5 @@
|
||||
# All of these are defaults except singleQuote and endOfLine, but we specify them
|
||||
# for explicitness
|
||||
endOfLine: auto
|
||||
singleQuote: true
|
||||
trailingComma: all
|
||||
|
@ -63,7 +63,7 @@
|
||||
"lint:lockfile:dedupe:fix": "yarn dedupe",
|
||||
"lint:lockfile": "lockfile-lint --path yarn.lock --allowed-hosts npm yarn github.com codeload.github.com --empty-hostname true --allowed-schemes \"https:\" \"git+https:\" \"npm:\" \"patch:\" \"workspace:\"",
|
||||
"lint:shellcheck": "./development/shellcheck.sh",
|
||||
"lint:styles": "stylelint -- */**/*.scss",
|
||||
"lint:styles": "stylelint '*/**/*.scss'",
|
||||
"lint:styles:fix": "yarn lint:styles --fix",
|
||||
"lint:tsc": "tsc --project tsconfig.json --noEmit",
|
||||
"validate-source-maps": "node ./development/sourcemap-validator.js",
|
||||
|
Loading…
Reference in New Issue
Block a user