From 33ff7cc5782ea49e664e98751aef856618d694ed Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Thu, 29 Apr 2021 10:17:13 -0700 Subject: [PATCH] Remove ESLint files too --- .eslintignore | 2 -- .eslintrc.js | 83 --------------------------------------------------- 2 files changed, 85 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.js diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 0716ff1..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist/** -.eslintrc.js diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 48ba4af..0000000 --- a/.eslintrc.js +++ /dev/null @@ -1,83 +0,0 @@ -// For reference: https://github.com/airbnb/javascript - -module.exports = { - root: true, - - parserOptions: { - project: './tsconfig.json', - ecmaVersion: 2018, - sourceType: 'module', - }, - - settings: { - 'import/core-modules': ['electron'], - }, - - plugins: ['header', 'import', 'mocha', 'more', '@typescript-eslint'], - - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:import/errors', - 'plugin:import/warnings', - 'plugin:import/typescript', - ], - - rules: { - 'header/header': [ - 2, - 'line', - [ - '', - { pattern: ' Copyright \\d{4}(-\\d{4})? Signal Messenger, LLC.' }, - ' SPDX-License-Identifier: AGPL-3.0-only', - '', - ], - ], - - 'comma-dangle': [ - 'error', - { - arrays: 'always-multiline', - objects: 'always-multiline', - imports: 'always-multiline', - exports: 'always-multiline', - functions: 'never', - }, - ], - - // prevents us from accidentally checking in exclusive tests (`.only`): - 'mocha/no-exclusive-tests': 'error', - - // encourage consistent use of `async` / `await` instead of `then` - 'more/no-then': 'error', - - // it helps readability to put public API at top, - 'no-use-before-define': 'off', - - // useful for unused or internal fields - 'no-underscore-dangle': 'off', - - // useful for unused parameters - '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], - - // though we have a logger, we still remap console to log to disk - 'no-console': 'error', - - // consistently place operators at end of line except ternaries - 'operator-linebreak': 'error', - - quotes: [ - 'error', - 'single', - { avoidEscape: true, allowTemplateLiterals: false }, - ], - - // We prefer named exports - 'import/prefer-default-export': 'off', - - '@typescript-eslint/no-require-imports': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/explicit-module-boundary-types': 'error', - }, -};