chore(dev): improve eslint config

This commit is contained in:
syuilo 2022-06-23 13:19:17 +09:00
parent 43b9a9e618
commit 2a2020b797
2 changed files with 5 additions and 1 deletions

View file

@ -25,7 +25,6 @@ module.exports = {
// data の禁止理由: 抽象的すぎるため
// e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため
'id-denylist': ['error', 'window', 'data', 'e'],
'eqeqeq': ['error', 'always', { 'null': 'ignore' }],
'no-shadow': ['warn'],
'vue/attributes-order': ['error', {
'alphabetical': false,

View file

@ -31,6 +31,11 @@ module.exports = {
'beforeColon': false,
'afterColon': true,
}],
'arrow-spacing': ['error', {
'before': true,
'after': true,
}],
'padded-blocks': ['error', 'never'],
/* TODO: path alias使warn
'no-restricted-imports': ['warn', {
'patterns': [