Skip to content

Commit ec5f49f

Browse files
authored
feat: adding ESLint and prettier configuration for code quality and consistency (neutralinojs#93)
1 parent dcfab68 commit ec5f49f

File tree

5 files changed

+2846
-74
lines changed

5 files changed

+2846
-74
lines changed

.eslintignore

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
2+
# Created by <https://www.toptal.com/developers/gitignore/api/node>
3+
4+
# Edit at <https://www.toptal.com/developers/gitignore?templates=node>
5+
6+
## Node
7+
8+
# Logs
9+
10+
logs
11+
*.log
12+
npm-debug.log*
13+
yarn-debug.log*
14+
yarn-error.log*
15+
lerna-debug.log*
16+
17+
# Diagnostic reports (<https://nodejs.org/api/report.html>)
18+
19+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
20+
21+
# Runtime data
22+
23+
pids
24+
*.pid
25+
*.seed
26+
*.pid.lock
27+
28+
# Directory for instrumented libs generated by jscoverage/JSCover
29+
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
34+
coverage
35+
*.lcov
36+
37+
# nyc test coverage
38+
39+
.nyc_output
40+
41+
# Grunt intermediate storage (<https://gruntjs.com/creating-plugins#storing-task-files>)
42+
43+
.grunt
44+
45+
# Bower dependency directory (<https://bower.io/>)
46+
47+
bower_components
48+
49+
# node-waf configuration
50+
51+
.lock-wscript
52+
53+
# Compiled binary addons (<https://nodejs.org/api/addons.html>)
54+
55+
build/Release
56+
57+
# Dependency directories
58+
59+
node_modules/
60+
jspm_packages/
61+
62+
# TypeScript v1 declaration files
63+
64+
typings/
65+
66+
# TypeScript cache
67+
68+
*.tsbuildinfo
69+
70+
# Optional npm cache directory
71+
72+
.npm
73+
74+
# Optional eslint cache
75+
76+
.eslintcache
77+
78+
# Optional stylelint cache
79+
80+
.stylelintcache
81+
82+
# Microbundle cache
83+
84+
.rpt2_cache/
85+
.rts2_cache_cjs/
86+
.rts2_cache_es/
87+
.rts2_cache_umd/
88+
89+
# Optional REPL history
90+
91+
.node_repl_history
92+
93+
# Output of 'npm pack'
94+
95+
*.tgz
96+
97+
# Yarn Integrity file
98+
99+
.yarn-integrity
100+
101+
# dotenv environment variables file
102+
103+
.env
104+
.env.test
105+
.env*.local
106+
107+
# parcel-bundler cache (<https://parceljs.org/>)
108+
109+
.cache
110+
.parcel-cache
111+
112+
# Next.js build output
113+
114+
.next
115+
116+
# Nuxt.js build / generate output
117+
118+
.nuxt
119+
dist
120+
121+
# Storybook build outputs
122+
123+
.out
124+
.storybook-out
125+
storybook-static
126+
127+
# rollup.js default build output
128+
129+
dist/
130+
131+
# Gatsby files
132+
133+
.cache/
134+
135+
# Comment in the public line in if your project uses Gatsby and not Next.js
136+
137+
# <https://nextjs.org/blog/next-9-1#public-directory-support>
138+
139+
# public
140+
141+
# vuepress build output
142+
143+
.vuepress/dist
144+
145+
# Serverless directories
146+
147+
.serverless/
148+
149+
# FuseBox cache
150+
151+
.fusebox/
152+
153+
# DynamoDB Local files
154+
155+
.dynamodb/
156+
157+
# TernJS port file
158+
159+
.tern-port
160+
161+
# Stores VSCode versions used for testing VSCode extensions
162+
163+
.vscode-test
164+
165+
# Temporary folders
166+
167+
tmp/
168+
temp/
169+
170+
# End of <https://www.toptal.com/developers/gitignore/api/node>

.eslintrc.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier"
10+
],
11+
"parser": "@typescript-eslint/parser",
12+
"parserOptions": {
13+
"ecmaVersion": "latest",
14+
"sourceType": "module"
15+
},
16+
"plugins": [
17+
"@typescript-eslint"
18+
],
19+
"rules": {
20+
}
21+
}

.prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"arrowParens": "avoid"
5+
}

0 commit comments

Comments
 (0)