Commit e1cb1434 authored by N's avatar N Committed by GitHub

Merge pull request #53 from blockscout/eslint-github-check

eslint github action
parents c0ab4182 8a4307b9
...@@ -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',
},
},
],
}; };
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
/// <reference types="next-react-svg" /> /// <reference types="next-react-svg" />
\ No newline at end of file
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
...@@ -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": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment