-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional configuration for lint-staged + prettier + typescript-eslint.
- Loading branch information
1 parent
475bffd
commit 8520435
Showing
11 changed files
with
478 additions
and
159 deletions.
There are no files selected for viewing
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 @@ | ||
[{"C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\components\\TodoForm.tsx":"1","C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\config\\theme.ts":"2","C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\pages\\_app.tsx":"3","C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\pages\\_document.tsx":"4","C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\pages\\index.tsx":"5"},{"size":4849,"mtime":1644730339929,"results":"6","hashOfConfig":"7"},{"size":578,"mtime":1644730339955,"results":"8","hashOfConfig":"7"},{"size":309,"mtime":1644730339973,"results":"9","hashOfConfig":"7"},{"size":826,"mtime":1644730339994,"results":"10","hashOfConfig":"7"},{"size":1321,"mtime":1644730340024,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","suppressedMessages":"14","errorCount":2,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"2kmxir",{"filePath":"15","messages":"16","suppressedMessages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"18","messages":"19","suppressedMessages":"20","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"21","messages":"22","suppressedMessages":"23","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"24","messages":"25","suppressedMessages":"26","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\components\\TodoForm.tsx",["27","28","29"],[],"C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\config\\theme.ts",[],[],"C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\pages\\_app.tsx",[],[],"C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\pages\\_document.tsx",[],[],"C:\\Users\\Rhaidzsal Ali\\Desktop\\code-5\\nextjs-template\\pages\\index.tsx",[],[],{"ruleId":"30","severity":1,"message":"31","line":46,"column":35,"nodeType":"32","messageId":"33","endLine":46,"endColumn":51},{"ruleId":"34","severity":2,"message":"35","line":97,"column":16,"nodeType":"36","messageId":"37"},{"ruleId":"34","severity":2,"message":"35","line":97,"column":40,"nodeType":"36","messageId":"37"},"@typescript-eslint/no-non-null-assertion","Forbidden non-null assertion.","TSNonNullExpression","noNonNull","react/no-unescaped-entities","`'` can be escaped with `'`, `‘`, `'`, `’`.","JSXText","unescapedEntityAlts"] |
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 @@ | ||
_ |
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,6 +1,6 @@ | ||
module.exports = { | ||
'**/*.ts?(x)': filenames => | ||
`next lint --fix --file ${filenames | ||
.map(file => file.split(process.cwd())[1]) | ||
.join(' --file ')}`, | ||
}; | ||
'**/*.ts?(x)': filenames => | ||
`next lint --fix --file ${filenames | ||
.map(file => file.split(process.cwd())[1]) | ||
.join(' --file ')}`, | ||
} |
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,8 +1,8 @@ | ||
{ | ||
"arrowParens": "avoid", | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"jsxSingleQuote": true, | ||
"jsxBracketSameLine": true, | ||
"semi": false | ||
"arrowParens": "avoid", | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"jsxSingleQuote": true, | ||
"jsxBracketSameLine": true, | ||
"semi": false | ||
} |
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,29 +1,29 @@ | ||
import { extendTheme } from "@chakra-ui/react"; | ||
import { extendTheme } from '@chakra-ui/react' | ||
|
||
const theme = extendTheme({ | ||
colors: { | ||
"dark-1": "#1A1C20", | ||
"dark-2": "#2B2D33", | ||
"dark-3": "#33363D", | ||
'dark-1': '#1A1C20', | ||
'dark-2': '#2B2D33', | ||
'dark-3': '#33363D', | ||
}, | ||
fonts: { | ||
body: "'Inter', sans-serif", | ||
}, | ||
fontSizes: { | ||
xs: "0.75rem", // 12px | ||
sm: "0.875rem", // 14px | ||
base: "1rem", // 16px | ||
lg: "1.125rem", // 18px | ||
xl: "1.25rem", // 20px | ||
"2xl": "1.5rem", // 24px | ||
"3xl": "1.875rem", // 30px | ||
"4xl": "2.25rem", // 36px | ||
"5xl": "3rem", // 48px | ||
"6xl": "3.75rem", // 60px | ||
xs: '0.75rem', // 12px | ||
sm: '0.875rem', // 14px | ||
base: '1rem', // 16px | ||
lg: '1.125rem', // 18px | ||
xl: '1.25rem', // 20px | ||
'2xl': '1.5rem', // 24px | ||
'3xl': '1.875rem', // 30px | ||
'4xl': '2.25rem', // 36px | ||
'5xl': '3rem', // 48px | ||
'6xl': '3.75rem', // 60px | ||
}, | ||
styles: { | ||
global: {}, | ||
}, | ||
}); | ||
}) | ||
|
||
export default theme; | ||
export default theme |
Oops, something went wrong.