-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,73 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
'env': { | ||
'browser': true, | ||
'es6': true | ||
env: { | ||
browser: true, | ||
es6: true, | ||
}, | ||
'plugins': [ | ||
plugins: [ | ||
'import', | ||
'no-unsanitized', | ||
'react-hooks', | ||
'jam3', // for dangerouslySetInnerHTML | ||
], | ||
|
||
'extends': [ | ||
'eslint:recommended', | ||
'plugin:react/recommended', | ||
], | ||
'globals': { | ||
'Atomics': 'readonly', | ||
'SharedArrayBuffer': 'readonly' | ||
extends: ['eslint:recommended', 'plugin:react/recommended'], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
'parserOptions': { | ||
'ecmaVersion': 2018, | ||
'sourceType': 'module', | ||
'jsx': true, | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
jsx: true, | ||
}, | ||
'rules': { | ||
'complexity': [ 'error', { max: 10 } ], | ||
'indent': [ 'error', 'tab', { 'SwitchCase': 1 } ], | ||
'linebreak-style': [ 'error', 'unix' ], | ||
'max-depth': [ 'error', 4 ], | ||
'max-len': [ 'error', {'code': 150 } ], | ||
'max-lines': [ 'error', { max: 300, skipBlankLines: true, skipComments: true, } ], | ||
'max-params': [ 'warn', { max: 4 } ], | ||
'no-shadow': [ 'error', { 'builtinGlobals': true } ], | ||
'quotes': [ 'error', 'single' ], | ||
'semi': [ 'error', 'always' ], | ||
rules: { | ||
complexity: ['error', { max: 10 }], | ||
indent: ['error', 'tab', { SwitchCase: 1 }], | ||
'linebreak-style': ['error', 'unix'], | ||
'max-depth': ['error', 4], | ||
'max-len': ['error', { code: 150 }], | ||
'max-lines': [ | ||
'error', | ||
{ max: 300, skipBlankLines: true, skipComments: true }, | ||
], | ||
'max-params': ['warn', { max: 4 }], | ||
'no-shadow': ['error', { builtinGlobals: true }], | ||
semi: ['error', 'always'], | ||
|
||
'no-restricted-imports':[ | ||
'no-restricted-imports': [ | ||
'error', | ||
{ | ||
paths: [ | ||
{ | ||
name: 'lodash', | ||
message: 'Please do not import lodash as a whole: import individual lodash functions instead.' | ||
} | ||
] | ||
} | ||
message: | ||
'Please do not import lodash as a whole: import individual lodash functions instead.', | ||
}, | ||
], | ||
}, | ||
], | ||
|
||
'jam3/no-sanitizer-with-danger': ['error', { wrapperName: ['escapeHTML'] }], | ||
|
||
'no-unsanitized/property': [ 'error', { escape: { methods: ['escapeHTML'] } } ], | ||
'no-unsanitized/method': [ 'error' ], | ||
'jam3/no-sanitizer-with-danger': [ | ||
'error', | ||
{ wrapperName: ['escapeHTML'] }, | ||
], | ||
|
||
'react/prop-types': [ 'error' ], | ||
'no-unsanitized/property': [ | ||
'error', | ||
{ escape: { methods: ['escapeHTML'] } }, | ||
], | ||
'no-unsanitized/method': ['error'], | ||
|
||
'react-hooks/rules-of-hooks': [ 'error' ], | ||
'react-hooks/exhaustive-deps': [ 'warn' ], | ||
'react/prop-types': ['error'], | ||
|
||
'react-hooks/rules-of-hooks': ['error'], | ||
'react-hooks/exhaustive-deps': ['warn'], | ||
}, | ||
'settings': { | ||
'react': { | ||
'pragma': 'React', | ||
'version': 'detect' | ||
settings: { | ||
react: { | ||
pragma: 'React', | ||
version: 'detect', | ||
}, | ||
} | ||
}, | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
coverage | ||
CHANGELOG.md | ||
docs | ||
package.json | ||
package-lock.json | ||
SLOC |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"endOfLine": "lf", | ||
"semi": true, | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"trailingComma": "es5", | ||
"useTabs": true | ||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html class="no-js" lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Chords Charts Studio</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Mono:400,700" rel="stylesheet"><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"><script defer="defer" src="vendors.917a21db3f64c6c14201.js"></script><script defer="defer" src="main.917a21db3f64c6c14201.js"></script><link href="css/main.917a21db3f64c6c14201.css" rel="stylesheet"></head><body><div id="app" class="theme-dark"></div></body></html> | ||
<!doctype html><html class="no-js" lang="en_EN"><head><meta charset="utf-8"><meta http-equiv="x-ua-compatible" content="ie=edge"><title>Chords Charts Studio</title><meta name="description" content=""><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Roboto+Mono:400,700" rel="stylesheet"><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"><script defer="defer" src="vendors.2e13975f5eb9e07bb6a8.js"></script><script defer="defer" src="main.2e13975f5eb9e07bb6a8.js"></script><link href="css/main.2e13975f5eb9e07bb6a8.css" rel="stylesheet"></head><body><div id="app" class="theme-dark"></div></body></html> |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.