Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
e1cb1434
Unverified
Commit
e1cb1434
authored
Jul 19, 2022
by
N
Committed by
GitHub
Jul 19, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #53 from blockscout/eslint-github-check
eslint github action
parents
c0ab4182
8a4307b9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
7 deletions
+26
-7
.eslintrc.js
.eslintrc.js
+8
-0
linters.yml
.github/workflows/linters.yml
+11
-0
additional.d.ts
additional.d.ts
+1
-1
next.config.js
next.config.js
+5
-5
package.json
package.json
+1
-1
No files found.
.eslintrc.js
View file @
e1cb1434
...
@@ -243,4 +243,12 @@ module.exports = {
...
@@ -243,4 +243,12 @@ module.exports = {
'
regexp/no-useless-character-class
'
:
'
error
'
,
'
regexp/no-useless-character-class
'
:
'
error
'
,
'
regexp/no-useless-dollar-replacements
'
:
'
error
'
,
'
regexp/no-useless-dollar-replacements
'
:
'
error
'
,
},
},
overrides
:
[
{
files
:
[
'
*.js
'
,
'
*.jsx
'
],
rules
:
{
'
@typescript-eslint/no-var-requires
'
:
'
off
'
,
},
},
],
};
};
.github/workflows/linters.yml
0 → 100644
View file @
e1cb1434
name
:
Linters
on
:
[
pull_request
]
jobs
:
eslint
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Install dependencies
run
:
yarn
-
name
:
Run ESLint
run
:
yarn lint:eslint
\ No newline at end of file
additional.d.ts
View file @
e1cb1434
/// <reference types="next-react-svg" />
/// <reference types="next-react-svg" />
\ No newline at end of file
next.config.js
View file @
e1cb1434
const
withReactSvg
=
require
(
'
next-react-svg
'
)
const
withReactSvg
=
require
(
'
next-react-svg
'
)
;
const
path
=
require
(
'
path
'
)
const
path
=
require
(
'
path
'
)
;
module
.
exports
=
withReactSvg
({
module
.
exports
=
withReactSvg
({
include
:
path
.
resolve
(
__dirname
,
'
icons
'
),
include
:
path
.
resolve
(
__dirname
,
'
icons
'
),
reactStrictMode
:
true
,
reactStrictMode
:
true
,
webpack
(
config
,
options
)
{
webpack
(
config
)
{
return
config
return
config
}
},
})
})
\ No newline at end of file
package.json
View file @
e1cb1434
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"dev"
:
"next dev"
,
"dev"
:
"next dev"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"start"
:
"next start"
,
"start"
:
"next start"
,
"lint
"
:
"next lint
"
,
"lint
:eslint"
:
"./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx
"
,
"prepare"
:
"husky install"
"prepare"
:
"husky install"
},
},
"dependencies"
:
{
"dependencies"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment