Git Product home page Git Product logo

eslint-rallycoding's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eslint-rallycoding's Issues

ecmaFeatures

From the commit date, I was hoping this would be an update to the eslint-rallycoding from your courses.. but it still has the same errors/warnings that seem to keep it from functioning properly.

Is there a way to resolve this: ?

DeprecationWarning: [eslint] The 'ecmaFeatures' config file property is deprecated, and has no effect.

Thanks

edit, figured it out.. by dropping it into parseOptions:

parserOptions: {
    ecmaFeatures: {
      jsx: true,
    },
  },

[eslint] 'navigator' is not defined. (no-undef)

getUserLocationHandler = () => {
//console.log('Button pressed');
navigator.geolocation.getCurrentPosition(
position => {
console.log(position);
},
err => {
console.log(err);
},
{ enableHighAccuracy: true, timeout: 20000, maximumAge: 1000 }
);
}

Following is the error -
[eslint] 'navigator' is not defined. (no-undef)

JSX-a11y - Href-No-Hash Error

Configuration for rule "jsx-a11y/href-no-hash" is invalid:
Value ["a"] should be object. Referenced from: /usr/lib/node_modules/eslint-config-rallycoding/index.js

eslint-config-rallycoding > [email protected]: please use eslint-plugin-babel and babel/semi

Upgraded to RN .52-RC and now getting error message on all my import lines:

import { AsyncStorage } from 'react-native';

Error while running ESLint: Cannot read property 'range' of null.

TypeError: Cannot read property 'range' of null
at TokenStore.getTokenBefore (C:\reactnative\XX\node_modules\eslint\lib\token-store\index.js:318:17)
at EventEmitter.checkFunction (C:\reactnative\XX\node_modules\eslint\lib\rules\generator-star-spacing.js:131:42)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at NodeEventGenerator.applySelector (C:\reactnative\XX\node_modules\eslint\lib\util\node-event-generator.js:265:26)
at NodeEventGenerator.applySelectors (C:\reactnative\XX\node_modules\eslint\lib\util\node-event-generator.js:294:22)
at NodeEventGenerator.enterNode (C:\reactnative\XX\node_modules\eslint\lib\util\node-event-generator.js:308:14)
at CodePathAnalyzer.enterNode (C:\reactnative\XX\node_modules\eslint\lib\code-path-analysis\code-path-analyzer.js:602:23)
at CommentEventGenerator.enterNode (C:\reactnative\XX\node_modules\eslint\lib\util\comment-event-generator.js:98:23)
at Traverser.enter (C:\reactnative\XX\node_modules\eslint\lib\eslint.js:929:36)
at Traverser.__execute (C:\reactnative\XX\node_modules\estraverse\estraverse.js:397:31)
at Traverser.traverse (C:\reactnative\XX\node_modules\estraverse\estraverse.js:501:28)
at Traverser.traverse (C:\reactnative\XX\node_modules\eslint\lib\util\traverser.js:31:22)
at EventEmitter.module.exports.api.verify (C:\reactnative\XX\node_modules\eslint\lib\eslint.js:926:23)
at processText (C:\reactnative\XX\node_modules\eslint\lib\cli-engine.js:264:31)
at CLIEngine.executeOnText (C:\reactnative\XX\node_modules\eslint\lib\cli-engine.js:754:26)
at lintJob (file:///C:/Users/USERX/.atom/packages/linter-eslint/src/worker.js:66:28)
at process.

definition for rule react/require-extension not found

I was getting an error on the first line/import of every file:

[eslint] Definition for rule 'react/require-extension' was not found (react/require-extension)

The docs for require-extension seem to have been removed, so is there a reason to still include this when the config already includes eslint-plugin-import?

// Restrict file extensions that may be required
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
'react/require-extension': [2, { extensions: ['.jsx', '.js'] }],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.