-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated dependencies, added theme switch, fixed found eslint er…
…rors
- Loading branch information
Showing
29 changed files
with
14,705 additions
and
13,162 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** @ts-check */ | ||
const globals = require("@anolilab/eslint-config/globals"); | ||
const { defineConfig } = require("@anolilab/eslint-config/define-config"); | ||
|
||
module.exports = defineConfig({ | ||
env: { | ||
// Your environments (which contains several predefined global variables) | ||
// Most environments are loaded automatically if our rules are added | ||
}, | ||
extends: ["@anolilab/eslint-config", "@anolilab/eslint-config/typescript-type-checking"], | ||
globals: { | ||
...globals.es2021, | ||
// Your global variables (setting to false means it's not allowed to be reassigned) | ||
// myGlobal: false | ||
}, | ||
ignorePatterns: ["!**/*"], | ||
overrides: [ | ||
{ | ||
files: ["*.ts", "*.tsx", "*.mts", "*.cts", "*.js", "*.jsx"], | ||
// Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting | ||
parserOptions: {}, | ||
rules: {}, | ||
}, | ||
{ | ||
files: ["*.ts", "*.tsx", "*.mts", "*.cts"], | ||
// Set parserOptions.project for the project to allow TypeScript to create the type-checker behind the scenes when we run linting | ||
parserOptions: {}, | ||
rules: { | ||
"import/no-cycle": "off", | ||
"no-use-before-define": "off", | ||
}, | ||
settings: { | ||
tailwindcss: { | ||
config: "./tailwind.config.js", | ||
whitelist: [], | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ["*.js", "*.jsx"], | ||
rules: { | ||
"global-require": "off", | ||
}, | ||
}, | ||
{ | ||
files: ["*.mdx"], | ||
rules: { | ||
"jsx-a11y/anchor-has-content": "off", | ||
// @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/917 | ||
"jsx-a11y/heading-has-content": "off", | ||
}, | ||
}, | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
project: "./tsconfig.json", | ||
sourceType: "module", | ||
}, | ||
root: true, | ||
rules: { | ||
// Customize your rules | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ coverage/ | |
resume.private.json | ||
|
||
dist | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"**/*.{js,jsx,tsx,ts}": [ | ||
"prettier --config=.prettierrc.cjs --write", | ||
"cross-env NO_LOGS=true eslint . --ext js,jsx,ts,tsx --max-warnings=1 --config .eslintrc.cjs --cache --cache-strategy content . --fix" | ||
"prettier --config=.prettierrc.js --write", | ||
"cross-env NO_LOGS=true eslint . --ext js,jsx,ts,tsx --max-warnings=1 --config .eslintrc.js --cache --cache-strategy content . --fix" | ||
], | ||
"*.{json,yml,yaml,less,css,scss,sass}": [ | ||
"prettier --config=.prettierrc.cjs --write" | ||
"prettier --config=.prettierrc.js --write" | ||
], | ||
"*.{md,mdx}": [ | ||
"prettier --config=.prettierrc.cjs --write" | ||
"prettier --config=.prettierrc.js --write" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18.17.0 | ||
18.17 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const config = require("@anolilab/prettier-config"); | ||
|
||
module.exports = { | ||
...config, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.