Skip to content

Commit

Permalink
Dev Defaults (#9)
Browse files Browse the repository at this point in the history
* next-env file

* add eslint + prettier config

* remove this to make my life simpler

* tailwind config

* remove api route

* add .env file to gitignore

* remove next default eslint

* modify eslint

* fix package config

* version bump

* eslint config works (I THINK)

* adjust settings
  • Loading branch information
GeorgeIpsum authored Apr 12, 2023
1 parent 4b80804 commit fd63233
Show file tree
Hide file tree
Showing 10 changed files with 5,410 additions and 86 deletions.
66 changes: 3 additions & 63 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,9 @@
* @type {import("eslint/lib/shared/types").ConfigData}
*/
module.exports = {
plugins: [
"@typescript-eslint",
"import",
"prettier"
],
extends: [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: "./"
},
ignorePatterns: [
"**/.eslintrc.js"
"ccs",
"ccs/typescript",
"ccs/prettier"
],
rules: {
quotes: ["error", "double"],
"object-curly-newline": 0,
"@typescript-eslint/ban-ts-comment": 0,
"no-plusplus": 0,
"no-underscore-dangle": 0,
"prettier/prettier": "warn",
// TODO: REVISIT THIS
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"no-restricted-syntax": 0,
"global-require": 0,
"import/no-dynamic-require": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Function": false // we use class decorators. sue me
},
"extendDefaults": true,
}
],
},
settings: {
"import/resolver": {
typescript: {
project: [
"./tsconfig.json"
]
},
node: {
},
}
}
};
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# env
.env
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"javascript.preferences.quoteStyle": "double",
"typescript.preferences.quoteStyle": "double",
"typescript.format.semicolons": "insert",
"typescript.format.insertSpaceAfterCommaDelimiter": true,
"javascript.inlayHints.enumMemberValues.enabled": true,
Expand Down
Loading

0 comments on commit fd63233

Please sign in to comment.