From b6c4767971ea4edf60d7fcadea68f66ff57e3e17 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Tue, 12 Mar 2024 12:44:14 -0500 Subject: [PATCH] Convert .eslintrc files to pure yaml for consistency. --- backend/.eslintrc.yml | 42 ++++++++++++++++--------------- docs/.eslintrc.js | 18 -------------- docs/.eslintrc.yml | 12 +++++++++ frontend/.eslintrc.yml | 56 ++++++++++++++++++++++-------------------- 4 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 docs/.eslintrc.js create mode 100644 docs/.eslintrc.yml diff --git a/backend/.eslintrc.yml b/backend/.eslintrc.yml index 7a1d7724..1282bd5f 100644 --- a/backend/.eslintrc.yml +++ b/backend/.eslintrc.yml @@ -1,21 +1,23 @@ --- -{ - "env": {"es6": true, "node": true}, - "parser": "@typescript-eslint/parser", - "ignorePatterns": ["dist/**"], - "extends": - [ - "plugin:prettier/recommended", - "plugin:@typescript-eslint/eslint-recommended", - ], - "plugins": ["prettier", "@typescript-eslint"], - "parserOptions": {"ecmaVersion": 2018, "sourceType": "module"}, - "rules": - { - "prettier/prettier": "error", - "react/prop-types": 0, - "react/display-name": 0, - }, - "settings": {"react": {"version": "detect"}}, - "globals": {"Atomics": "readonly", "SharedArrayBuffer": "readonly"}, -} +env: + es6: true + node: true +parser: '@typescript-eslint/parser' +ignorePatterns: [dist/**] +extends: + - plugin:prettier/recommended + - plugin:@typescript-eslint/eslint-recommended +plugins: [prettier, '@typescript-eslint'] +parserOptions: + ecmaVersion: 2018 + sourceType: module +rules: + prettier/prettier: error + react/prop-types: 0 + react/display-name: 0 +settings: + react: + version: detect +globals: + Atomics: readonly + SharedArrayBuffer: readonly diff --git a/docs/.eslintrc.js b/docs/.eslintrc.js deleted file mode 100644 index 482ca17b..00000000 --- a/docs/.eslintrc.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = { - globals: { - __PATH_PREFIX__: true, - }, - extends: 'react-app', - rules: { - 'jsx-a11y/label-has-associated-control': [ - 'error', - { - labelComponents: [], - labelAttributes: [], - controlComponents: [], - assert: 'htmlFor', - depth: 25, - }, - ], - }, -}; diff --git a/docs/.eslintrc.yml b/docs/.eslintrc.yml new file mode 100644 index 00000000..36e8209a --- /dev/null +++ b/docs/.eslintrc.yml @@ -0,0 +1,12 @@ +--- +globals: + __PATH_PREFIX__: true +extends: react-app +rules: + jsx-a11y/label-has-associated-control: + - error + - labelComponents: [] + labelAttributes: [] + controlComponents: [] + assert: htmlFor + depth: 25 diff --git a/frontend/.eslintrc.yml b/frontend/.eslintrc.yml index a1fa0422..68a8c31e 100644 --- a/frontend/.eslintrc.yml +++ b/frontend/.eslintrc.yml @@ -1,27 +1,31 @@ --- -{ - 'env': {'browser': true, 'es6': true, 'node': true}, - 'parser': '@typescript-eslint/parser', - 'extends': - [ - 'react-app', - 'plugin:prettier/recommended', - 'plugin:react/recommended', - 'plugin:@typescript-eslint/eslint-recommended' - ], - 'plugins': ['react', 'react-hooks', 'prettier', '@typescript-eslint'], - 'parserOptions': - { - 'ecmaFeatures': {'jsx': true}, - 'ecmaVersion': 2018, - 'sourceType': 'module' - }, - 'rules': - { - 'prettier/prettier': 'error', - 'react/prop-types': 0, - 'react/display-name': 0 - }, - 'settings': {'react': {'version': 'detect'}}, - 'globals': {'Atomics': 'readonly', 'SharedArrayBuffer': 'readonly'} -} +env: + browser: true + es6: true + node: true +parser: '@typescript-eslint/parser' +extends: + - react-app + - plugin:prettier/recommended + - plugin:react/recommended + - plugin:@typescript-eslint/eslint-recommended +plugins: + - react + - react-hooks + - prettier + - '@typescript-eslint' +parserOptions: + ecmaFeatures: + jsx: true + ecmaVersion: 2018 + sourceType: module +rules: + prettier/prettier: error + react/prop-types: 0 + react/display-name: 0 +settings: + react: + version: detect +globals: + Atomics: readonly + SharedArrayBuffer: readonly