forked from creativecommons/chooser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linting and code formatting (creativecommons#321)
* added prettier and changed indent * added stylelint * added pre-commit * Improvements * Merge remote-tracking branch 'upstream/master' into Linting-and-formatting * Temporarily disable pre-commit hook to allow rebase * Re-enable pre-commit hook after merge * Lint merged files * Add comma-dangle multiline rule Co-authored-by: Olga Bulat <[email protected]>
- Loading branch information
1 parent
0a1eedc
commit 48f3385
Showing
67 changed files
with
49,223 additions
and
22,831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,43 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
root: true, | ||
|
||
env: { | ||
node: true, | ||
browser: true, | ||
}, | ||
|
||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
indent: ['error', 2], | ||
'comma-dangle': ["error", "always-multiline"], | ||
'space-before-function-paren': ['warn', 'never'], | ||
'vue/require-default-prop': 'off', | ||
'vue/no-v-html': 'off', | ||
'vue/html-indent': ['error', 2], | ||
}, | ||
|
||
parserOptions: { | ||
parser: 'babel-eslint', | ||
}, | ||
|
||
overrides: [ | ||
|
||
{ | ||
files: [ | ||
'**/__tests__/*.{j,t}s?(x)', | ||
'**/tests/unit/**/*.spec.{j,t}s?(x)', | ||
], | ||
env: { | ||
jest: true, | ||
}, | ||
}, | ||
extends: [ | ||
'plugin:vue/recommended', | ||
'@vue/standard' | ||
], | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
indent: ['error', 4], | ||
'space-before-function-paren': ['warn', 'never'], | ||
'vue/require-default-prop': 'off', | ||
'vue/no-v-html': 'off', | ||
'vue/html-indent': ['error', 4] | ||
}, | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**/__tests__/*.{j,t}s?(x)', | ||
'**/tests/unit/**/*.spec.{j,t}s?(x)' | ||
], | ||
env: { | ||
jest: true | ||
} | ||
} | ||
] | ||
], | ||
|
||
extends: [ | ||
'plugin:vue/recommended', | ||
'@vue/standard', | ||
'prettier', | ||
'prettier/vue', | ||
], | ||
} |
Oops, something went wrong.