Upload 4.2
This commit is contained in:
40
part4/bloglist/.eslintrc.js
Normal file
40
part4/bloglist/.eslintrc.js
Normal file
@@ -0,0 +1,40 @@
|
||||
module.exports = {
|
||||
'env': {
|
||||
'node': true,
|
||||
'commonjs': true,
|
||||
'es2021': true
|
||||
},
|
||||
'extends': 'eslint:recommended',
|
||||
'overrides': [
|
||||
],
|
||||
'parserOptions': {
|
||||
'ecmaVersion': 'latest'
|
||||
},
|
||||
'rules': {
|
||||
'indent': [
|
||||
'error',
|
||||
2
|
||||
],
|
||||
'linebreak-style': [
|
||||
'error',
|
||||
'unix'
|
||||
],
|
||||
'quotes': [
|
||||
'error',
|
||||
'single'
|
||||
],
|
||||
'semi': [
|
||||
'error',
|
||||
'never'
|
||||
],
|
||||
'eqeqeq': 'error',
|
||||
'no-trailing-spaces': 'error',
|
||||
'object-curly-spacing': [
|
||||
'error', 'always'
|
||||
],
|
||||
'arrow-spacing': [
|
||||
'error', { 'before': true, 'after': true }
|
||||
],
|
||||
'no-console': 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user