GithubHelp home page GithubHelp logo

Comments (3)

CodingKoopa avatar CodingKoopa commented on May 18, 2024

It's been a while since I've worked with this, and it'll be some time until I'm going to be able to look into this, but the likely place for this to be fixed would be here, as another item in the array.

EDIT: Rereading your issue, I'm actually not sure what the issue is. Are you trying to correct the countNum to count_num? Does --fix not fix that?

from eslint-plugin-more-naming-conventions.

www-YM avatar www-YM commented on May 18, 2024

It's been a while since I've worked with this, and it'll be some time until I'm going to be able to look into this, but the likely place for this to be fixed would be here, as another item in the array.

EDIT: Rereading your issue, I'm actually not sure what the issue is. Are you trying to correct the countNum to count_num? Does --fix not fix that?

Thank for your reply.
I'm trying to correct countNum to count_num, and firstName to first_name. But this plugin only fixed countNum.


Wanted:

(master) $ ./node_modules/.bin/eslint ./counter.js 

/Users/rainbo/sites/test/vue-test-utils-getting-started/counter.js
   6:7   error  Identifiers must be snake_case: countNum   snakecasejs/snakecasejs
   7:7   error  Identifiers must be snake_case: firstName  snakecasejs/snakecasejs
  13:13  error  Identifiers must be snake_case: countNum   snakecasejs/snakecasejs
  14:23  error  Identifiers must be snake_case: countNum   snakecasejs/snakecasejs

Actual(eslint-plugin-more-naming-conventions):

(master) $ ./node_modules/.bin/eslint ./counter.js 

/Users/rainbo/sites/test/vue-test-utils-getting-started/counter.js
  13:13  error  Variable 'countNum' is not in snake case  more-naming-conventions/snake-case-variables

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

Solved.
https://www.npmjs.com/package/eslint-plugin-snakecasejs

I found another plugin to solve my problem, thank you for your help.

from eslint-plugin-more-naming-conventions.

CodingKoopa avatar CodingKoopa commented on May 18, 2024

I will be keeping this issue open as this doesn't resolve the issue in this package. Thanks for the info.

from eslint-plugin-more-naming-conventions.

Related Issues (3)

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.