mirror of
https://github.com/gotify/server.git
synced 2026-07-01 01:44:21 +08:00
Add linter settings
This commit is contained in:
committed by
Jannis Mattheis
parent
90e07f2489
commit
f3a140769c
18
ui/.eslintrc.js
Normal file
18
ui/.eslintrc.js
Normal file
@@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
'extends': ['google', 'plugin:react/recommended'],
|
||||
'parser': 'babel-eslint',
|
||||
'env': {
|
||||
'browser': true,
|
||||
},
|
||||
'globals': {
|
||||
'React': true,
|
||||
},
|
||||
'plugins': ['react', 'babel'],
|
||||
'rules': {
|
||||
'linebreak-style': 0,
|
||||
'max-len': ['error', 140],
|
||||
'require-jsdoc': 0,
|
||||
'babel/no-invalid-this': 1,
|
||||
'no-invalid-this': 0,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user