archived-codacy / codacy-eslint-legacy Goto Github PK
View Code? Open in Web Editor NEWEslint Tool for Codacy
License: Other
Eslint Tool for Codacy
License: Other
FT-2341
Receiving these errors on codacy but not locally
Resolve error: Cannot find module 'webpack' (import/no-extraneous-dependencies)
on lines like
import 'whatwg-fetch';
here is my .eslintrc
"parser": "babel-eslint",
"cache": true,
"env": {
"browser": true, // browser global variables.
"node": true, // Node.js global variables and Node.js-specific rules.
"es6": true,
"jasmine": true // adds all of the Jasmine testing global variables for version 1.3 and 2.0.
},
"globals": {
"__ENV__": true,
"__DROPSHIPPER_API__": true,
"__CATALOG_API__": true,
"__VERSION_NPM__": true,
"__VERSION_GIT__": true,
"__TEST__": true,
"Bugsnag": true
},
"plugins": [
"import"
],
"extends": [
"airbnb",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"import/no-unresolved": [1],
"import/extensions": [0],
"import/default": [0],
"import/prefer-default-export": [0],
"no-constant-condition": [0],
"no-param-reassign": [0],
"react/jsx-filename-extension": [0],
"react/prefer-stateless-function": [2, { "ignorePureComponents": true }],
"react/jsx-closing-bracket-location": [0],
"react/jsx-boolean-value": [0],
"class-methods-use-this": [0],
"no-class-assign": [0]
},
"settings": {
"import/resolver": "webpack"
}
}
We are migrating our application to typescript. For a while we will have a mixed codebase of javascript and typescript. We would like to lint both types of file in the same way. To do this we would use the overrides
-> extends
functionality in the .eslintrc
something like this:
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
...
This functionality only works correctly in eslint 6+ (issue here). Are there plans to update the version of eslint used here to version 6? Can I submit a PR to do this?
Allow use to specify how we want them to be wrapped as per http://eslint.org/docs/rules/wrap-iife
We are using Prettier 1.9 to add arrowParens
option. But codacy-eslint is locked to Prettier 1.7, which don't support it. So Codacy fail to check correctly our repos.
As far as I can tell, ESLint will use some shared configs, including the eslint-plugin-flowtype
However this plugin only works properly if ESLint is using the babel-eslint parser instead of the regular parser, as stated in the installation instructions
This is relevant because eslint doesn't understand type annotations, rendering Flowtype files useless.
Hello,
I come across some issues with codacy-eslint.
In our project we use airbnb rules preset for typescript:
'extends': [
'airbnb-typescript',
],
Locally eslint works well and I do not get any warnings. But in our github repos we use codacy to CI. And here we get some warnings like: Definition for rule '...' was not found
As I can see, your built script build.sbt
installs a lot of packages with specific versions.
It installs for example [email protected]
which requires @typescript-eslint/eslint-plugin@^2.3.0
.
But build.sbt
installs only @typescript-eslint/[email protected]
and this version of the package
doesn't consist some rules which are needed in [email protected]
.
For example:
@typescript-eslint/no-empty-function
@typescript-eslint/quotes
@typescript-eslint/brace-style
We also have similar issues between slint-config-airbnb-typescript
and eslint-plugin-react
packages (rule: react/jsx-curly-newline
)
What should we do to cope with it?
Add support for eslint-plugin-jsdoc
This issue was created after a Skyoe chat with @rtfpessoa.
Salesforce.com has a new UI technology called Lightning which heavily relies on Javascript. To check code style and security Salesforce provide a so called Lightning CLI based on Heroku CLI. For its checks it uses ESLint plus custom rules/plugins.
Salesforce.com developers who want to continously check their code using Codacy.com now have a problem. They have to run the local Lightning CLI and Codacy.com ESLint to check their code.
The goal of this issue is to find out if the CLI rules and plugins are in a way integratable into Codacy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.