-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(examples): update tailwind lint
- Loading branch information
Showing
25 changed files
with
2,705 additions
and
1,516 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["custom"], | ||
extends: ["custom/next"], | ||
}; |
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
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,4 +1,3 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ["custom"], | ||
extends: ["custom/next"], | ||
}; |
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
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
3 changes: 3 additions & 0 deletions
3
examples/with-tailwind/packages/eslint-config-custom/README.md
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,3 @@ | ||
# `@turbo/eslint-config` | ||
|
||
Collection of internal eslint configurations. |
11 changes: 0 additions & 11 deletions
11
examples/with-tailwind/packages/eslint-config-custom/index.js
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
examples/with-tailwind/packages/eslint-config-custom/library.js
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,34 @@ | ||
const { resolve } = require("node:path"); | ||
|
||
const project = resolve(process.cwd(), "tsconfig.json"); | ||
|
||
/* | ||
* This is a custom ESLint configuration for use with | ||
* typescript packages. | ||
* | ||
* This config extends the Vercel Engineering Style Guide. | ||
* For more information, see https://github.com/vercel/style-guide | ||
* | ||
*/ | ||
|
||
module.exports = { | ||
extends: [ | ||
"@vercel/style-guide/eslint/node", | ||
"@vercel/style-guide/eslint/typescript", | ||
].map(require.resolve), | ||
parserOptions: { | ||
project, | ||
}, | ||
globals: { | ||
React: true, | ||
JSX: true, | ||
}, | ||
settings: { | ||
"import/resolver": { | ||
typescript: { | ||
project, | ||
}, | ||
}, | ||
}, | ||
ignorePatterns: ["node_modules/", "dist/"], | ||
}; |
41 changes: 41 additions & 0 deletions
41
examples/with-tailwind/packages/eslint-config-custom/next.js
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,41 @@ | ||
const { resolve } = require("node:path"); | ||
|
||
const project = resolve(process.cwd(), "tsconfig.json"); | ||
|
||
/* | ||
* This is a custom ESLint configuration for use with | ||
* Next.js apps. | ||
* | ||
* This config extends the Vercel Engineering Style Guide. | ||
* For more information, see https://github.com/vercel/style-guide | ||
* | ||
*/ | ||
|
||
module.exports = { | ||
extends: [ | ||
"@vercel/style-guide/eslint/browser", | ||
"@vercel/style-guide/eslint/typescript", | ||
"@vercel/style-guide/eslint/react", | ||
"@vercel/style-guide/eslint/next", | ||
"eslint-config-turbo", | ||
].map(require.resolve), | ||
parserOptions: { | ||
project, | ||
}, | ||
globals: { | ||
React: true, | ||
JSX: true, | ||
}, | ||
settings: { | ||
"import/resolver": { | ||
typescript: { | ||
project, | ||
}, | ||
}, | ||
}, | ||
ignorePatterns: ["node_modules/", "dist/"], | ||
// add rules configurations here | ||
rules: { | ||
"import/no-default-export": "off", | ||
}, | ||
}; |
15 changes: 5 additions & 10 deletions
15
examples/with-tailwind/packages/eslint-config-custom/package.json
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,15 +1,10 @@ | ||
{ | ||
"name": "eslint-config-custom", | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"eslint-config-next": "^13.4.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-react": "7.28.0", | ||
"eslint-config-turbo": "^1.9.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
"version": "0.0.0", | ||
"private": true, | ||
"devDependencies": { | ||
"@vercel/style-guide": "^4.0.2", | ||
"eslint-config-turbo": "^1.10.12" | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
examples/with-tailwind/packages/eslint-config-custom/react.js
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,38 @@ | ||
const { resolve } = require("node:path"); | ||
|
||
const project = resolve(process.cwd(), "tsconfig.json"); | ||
|
||
/* | ||
* This is a custom ESLint configuration for use a library | ||
* that utilizes React. | ||
* | ||
* This config extends the Vercel Engineering Style Guide. | ||
* For more information, see https://github.com/vercel/style-guide | ||
* | ||
*/ | ||
|
||
module.exports = { | ||
extends: [ | ||
"@vercel/style-guide/eslint/browser", | ||
"@vercel/style-guide/eslint/typescript", | ||
"@vercel/style-guide/eslint/react", | ||
].map(require.resolve), | ||
parserOptions: { | ||
project, | ||
}, | ||
globals: { | ||
JSX: true, | ||
}, | ||
settings: { | ||
"import/resolver": { | ||
typescript: { | ||
project, | ||
}, | ||
}, | ||
}, | ||
ignorePatterns: ["node_modules/", "dist/", ".eslintrc.js", "**/*.css"], | ||
// add rules configurations here | ||
rules: { | ||
"import/no-default-export": "off", | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ["custom/react"], | ||
}; |
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
Oops, something went wrong.