소스 검색

chore: update eslint rules

Gerald 6 년 전
부모
커밋
24124f2c3b
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 1
      .eslintrc.js
  2. 0 1
      src/background/plugin/index.js
  3. 0 1
      src/injected/web/download.js
  4. 0 1
      src/popup/utils/index.js

+ 4 - 1
.eslintrc.js

@@ -16,7 +16,7 @@ module.exports = {
     },
   },
   rules: {
-    'no-param-reassign': ['error', { props: false }],
+    'no-param-reassign': 'off',
     'consistent-return': 'off',
     'no-use-before-define': ['error', 'nofunc'],
     'no-mixed-operators': 'off',
@@ -29,6 +29,9 @@ module.exports = {
     }],
     indent: ['error', 2, { MemberExpression: 0 }],
     'object-shorthand': ['error', 'always'],
+    'no-restricted-syntax': 'off',
+    'class-methods-use-this': 'off',
+    'import/prefer-default-export': 'off',
   },
   globals: {
     browser: true,

+ 0 - 1
src/background/plugin/index.js

@@ -5,7 +5,6 @@ import {
   removeScript,
 } from '../utils/db';
 
-// eslint-disable-next-line import/prefer-default-export
 export const script = {
   update(data) {
     // Update an existing script by ID

+ 0 - 1
src/injected/web/download.js

@@ -1,7 +1,6 @@
 import { downloadBlob } from '#/common/download';
 import { onRequestCreate } from './requests';
 
-// eslint-disable-next-line import/prefer-default-export
 export function onDownload(arg1, arg2) {
   let options;
   if (typeof arg1 === 'string') {

+ 0 - 1
src/popup/utils/index.js

@@ -1,4 +1,3 @@
-/* eslint-disable import/prefer-default-export */
 export const store = {
   scripts: [],
   commands: [],