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 = {
'regexp/no-useless-character-class': '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
const withReactSvg = require('next-react-svg')
const path = require('path')
const withReactSvg = require('next-react-svg');
const path = require('path');
module.exports = withReactSvg({
include: path.resolve(__dirname, 'icons'),
reactStrictMode: true,
webpack(config, options) {
webpack(config) {
return config
}
},
})
......@@ -6,7 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:eslint": "./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx",
"prepare": "husky install"
},
"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