aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-12 18:45:58 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-12 18:45:58 +0530
commit851f48856984076d2571152bde322688ba4946f2 (patch)
treed77a37b8de0f5a8b06b2afb83d7e4af39fc84a73 /.eslintrc.js
parentca80dee29014298bd8a1a82bd0418cc073a76316 (diff)
downloadcss-everything-851f48856984076d2571152bde322688ba4946f2.tar.gz
css-everything-851f48856984076d2571152bde322688ba4946f2.zip
chore: prettier + eslint magic
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js41
1 files changed, 41 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..3da3349
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,41 @@
+module.exports = {
+ env: {
+ browser: true,
+ es2021: true,
+ jest: true,
+ },
+ extends: [
+ 'eslint:recommended',
+ 'plugin:@typescript-eslint/recommended',
+ 'prettier',
+ ],
+ overrides: [
+ {
+ env: {
+ node: true,
+ },
+ files: ['.eslintrc.{js,cjs}'],
+ parserOptions: {
+ sourceType: 'script',
+ },
+ },
+ ],
+ parser: '@typescript-eslint/parser',
+ parserOptions: {
+ ecmaVersion: 'latest',
+ sourceType: 'module',
+ },
+ plugins: ['@typescript-eslint', 'prettier'],
+ rules: {
+ 'prettier/prettier': 'error',
+ '@typescript-eslint/no-explicit-any': 'off',
+ '@typescript-eslint/no-unused-vars': [
+ 'warn', // or "error"
+ {
+ argsIgnorePattern: '^_',
+ varsIgnorePattern: '^_',
+ caughtErrorsIgnorePattern: '^_',
+ },
+ ],
+ },
+}